updated on Tue Jan 24 16:10:37 UTC 2012
[aur-mirror.git] / smile / smile.install
blob0e42312aa01c5c414306a09a3c07d14da10ec745
1 # arg 1:  the new package version
2 post_install() {
3 /bin/true
6 # arg 1:  the new package version
7 # arg 2:  the old package version
8 post_upgrade() {
9         echo ">>>"
10         echo ">>> You can find documentation at http://smile.tuxfamily.org/HELP/doc_en.html"
11         echo ">>>"
12         if [ `vercmp $2 0.8.0` -lt 0 ]; then
13                 echo ">>>"
14                 echo ">>> You appear to upgrading SMILE from a version lower than 0.8.0"
15                 echo ">>> to version 0.8.0 or above."
16                 echo ">>> If this is really your situation, you shouldn't use your old"
17                 echo ">>> project files because new format."
18                 echo ">>>"
19         fi
20         if [ `vercmp $2 1.0` -lt 0 ]; then
21                 echo "********************* IMPORTANT UPGRADE NOTICE *********************"
22                 echo "*                                                                  *"
23                 echo "* You appear to be upgrading SMILE from a version lower than 1.0   *"
24                 echo "* to version 1.0 (or higher).                                      *" 
25                 echo "* If this is really your situation, you must remove the file       *"
26                 echo "* .smile.cnf from your home directory BEFORE USING THE APLICATION  *"
27                 echo "*                                                                  *"
28                 echo "********************************************************************"
29                 echo "*                                                                  *"
30                 echo "* You can do it by executing (logged as your normal user):         *"
31                 echo "*                      rm ~/.smile.cnf                             *"
32                 echo "*                                                                  *"
33                 echo "********************************************************************"
34         fi
37 op=$1
38 shift
39 $op $*