diff options
Diffstat (limited to 'www/bricolage/files/bric_upgrade.sh')
-rw-r--r-- | www/bricolage/files/bric_upgrade.sh | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/www/bricolage/files/bric_upgrade.sh b/www/bricolage/files/bric_upgrade.sh deleted file mode 100644 index 2abbeb60a4da..000000000000 --- a/www/bricolage/files/bric_upgrade.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/sh - -BRICUPGRADE=%%PREFIX%%/bricolage/upgrade -NEWVERSION=%%PORTVERSION%% - -# Ensure the version exists -if [ "X" = "X${NEWVERSION}" ] -then - echo "New version not supplied (port bug)" - exit 1 -fi - -# Ensure the old version exists at the end of the argument list -OLDVERSION=`echo "$*" | sed -e "s/^.* \([^ ]*\)/\1/"` -VTEST=`echo "$OLDVERSION" | sed -e 's/^1\.8\.[01234678]$/OKAY/' -e 's/^1\.10\.[0123]$/OKAY/'` -if [ "${VTEST}" != "OKAY" ] -then - echo "Version $OLDVERSION unknown." - echo "The final argument should be the old version of the port." - echo "" - echo " $0 [options] <version number>" - exit 1 -fi - -HAS_VERSION=`grep ${OLDVERSION} ${BRICUPGRADE}/versions.txt` -if [ "${HAS_VERSION}" = "" ] -then - echo "Version ${OLDVERSION} could not be found in the ${BRICUPGRADE}/versions.txt file" - echo "There are no components to upgrade" - exit 0 -fi - -# Now try to upgrade it -for ver in `grep -A 1000 ${OLDVERSION} ${BRICUPGRADE}/versions.txt | tail -n +2` -do - if [ -d ${BRICUPGRADE}/${ver} ] - then - for file in `ls ${BRICUPGRADE}/${ver}` - do - ${BRICUPGRADE}/${ver}/${file} $@ # Run with our args - done - fi -done - -echo "Upgrade complete" -exit 0 |