aboutsummaryrefslogtreecommitdiff
path: root/www/bricolage/files/bric_upgrade.sh
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2011-04-18 22:25:41 +0000
committerRene Ladan <rene@FreeBSD.org>2011-04-18 22:25:41 +0000
commit48f1d8c469aeb67c4c7838bd2bdf17f28eacbc79 (patch)
tree5509f9ae2d797f02944d429c11a7b43a3c3d2cf3 /www/bricolage/files/bric_upgrade.sh
parent1042e1bbe987939d4dce45f572cba84222b10aa9 (diff)
downloadports-48f1d8c469aeb67c4c7838bd2bdf17f28eacbc79.tar.gz
ports-48f1d8c469aeb67c4c7838bd2bdf17f28eacbc79.zip
Notes
Diffstat (limited to 'www/bricolage/files/bric_upgrade.sh')
-rw-r--r--www/bricolage/files/bric_upgrade.sh46
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