Author: nextgens Date: 2006-08-18 19:17:32 +0000 (Fri, 18 Aug 2006) New Revision: 10201
Modified: trunk/apps/installer/installclasspath/linux/update.sh Log: add a new parameter to linux updating scripts Modified: trunk/apps/installer/installclasspath/linux/update.sh =================================================================== --- trunk/apps/installer/installclasspath/linux/update.sh 2006-08-18 18:29:33 UTC (rev 10200) +++ trunk/apps/installer/installclasspath/linux/update.sh 2006-08-18 19:17:32 UTC (rev 10201) @@ -4,9 +4,17 @@ # Attempt to use the auto-fetcher code, which will check the sha1sums. -if [[ "$1" != "debug" ]] +if [[ "$#" -gt 0 ]] then - THEMASK="-o /dev/null" + if [[ "$1" == "testing" ]] + then + RELEASE="testing" + echo "WARNING! you're downloading an UNSTABLE snapshot version of freenet." + else + RELEASE="stable" + fi +else + RELEASE="stable" fi # see https://bugs.freenetproject.org/view.php?id=223 @@ -22,7 +30,7 @@ DOWNLOADER="curl --insecure -q -f -L -O " else WGET=1 - DOWNLOADER="wget $THEMASK -N " + DOWNLOADER="wget -o /dev/null -N " fi if [[ ! -s sha1test.jar ]] @@ -51,7 +59,7 @@ if java -cp sha1test.jar Sha1Test update/update.sh then - echo Downloaded update.sh + echo "Downloaded update.sh" chmod +x update.sh touch update.sh update2.sh @@ -64,7 +72,7 @@ exit fi else - echo Could not download new update.sh. + echo "Could not download new update.sh." exit fi @@ -78,13 +86,13 @@ cp freenet-ext.jar freenet-ext.jar.old fi -if java -cp sha1test.jar Sha1Test freenet-stable-latest.jar +if java -cp sha1test.jar Sha1Test freenet-$RELEASE-latest.jar then - echo Downloaded freenet-stable-latest.jar + echo Downloaded freenet-$RELEASE-latest.jar rm -f freenet.jar - ln -s freenet-stable-latest.jar freenet.jar + ln -s freenet-$RELEASE-latest.jar freenet.jar else - echo Could not download new freenet-stable-latest.jar. + echo Could not download new freenet-$RELEASE-latest.jar. exit fi
