mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Bump the upgrade file structure to deal with a
nonexistant directory without complaining. PR: 80636 Submitted by: Rod Taylor (maintainer)
This commit is contained in:
parent
6ab82556ad
commit
ec1f88a3fc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134649
1 changed files with 8 additions and 5 deletions
|
@ -12,7 +12,7 @@ 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\.[012]$/OKAY/"`
|
||||
VTEST=`echo "$OLDVERSION" | sed -e "s/^1\.8\.[01234]$/OKAY/"`
|
||||
if [ "${VTEST}" != "OKAY" ]
|
||||
then
|
||||
echo "The final argument should be the old version of the port, in the format."
|
||||
|
@ -31,10 +31,13 @@ fi
|
|||
# Now try to upgrade it
|
||||
for ver in `grep -A 1000 ${OLDVERSION} ${BRICUPGRADE}/versions.txt | tail -n +2`
|
||||
do
|
||||
for file in `ls ${BRICUPGRADE}/${ver}`
|
||||
do
|
||||
${BRICUPGRADE}/${ver}/${file} $@ # Run with our args
|
||||
done
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue