Changeset 18418
- Timestamp:
- 08/16/14 13:27:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/packagers/macosx/install.sh
r18416 r18418 47 47 cd $PACKAGENAME 48 48 49 #tricky part here. We do not want to reinstall this package if it's already installed 50 #and the svn file which does the install has not be modified! To keep track of 51 #this, we check the current svn version against the "last changed" revision number. If they 52 #are the same, we reinstall the package. 53 current_version=`svnversion` 54 last_changed_version=`svn info $PACKAGEINST | grep "Last Changed Rev" | awk '{printf("%s\n",$4);}'` 55 56 if [[ $current_version == $last_changed_version ]]; then 49 if [[ $PACKAGEINST -nt install ]]; then 57 50 #go ahead and reinstall. 58 echo "For $PACKAGENAME: svn current_version is $current_version and last changed version is $last_changed_version"59 51 echo "Triggering new install of $PACKAGENAME" 60 52 install_test=1 … … 64 56 #could be empty, signaling a failed previous install: 65 57 if [ "$(ls -A install)" ];then 66 echo "For $PACKAGENAME: svn current_version is $current_version and last changed version is $last_changed_version"67 58 echo "and install directory exists, so skipping install of $PACKAGENAME" 68 59 install_test=0; 69 60 else 70 echo "For $PACKAGENAME: svn current_version is $current_version and last changed version is $last_changed_version"71 61 echo "and install directory exists, however, it is empty, so triggering install of $PACKAGENAME" 72 62 install_test=1; 73 63 fi 74 64 else 75 echo "For $PACKAGENAME: svn current_version is $current_version and last changed version is $last_changed_version"76 65 echo "However, install directory does not exist, so triggering install of $PACKAGENAME" 77 66 install_test=1;
Note:
See TracChangeset
for help on using the changeset viewer.