source:
issm/oecreview/Archive/18296-19100/ISSM-18417-18418.diff@
19102
Last change on this file since 19102 was 19102, checked in by , 10 years ago | |
---|---|
File size: 1.9 KB |
-
../trunk-jpl/packagers/macosx/install.sh
46 46 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 61 53 else … … 63 55 if [ -d install ]; then 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; 78 67 fi
Note:
See TracBrowser
for help on using the repository browser.