svn commit: r197618 - head/usr.sbin/freebsd-update
Colin Percival
cperciva at FreeBSD.org
Tue Sep 29 16:26:10 UTC 2009
Author: cperciva
Date: Tue Sep 29 16:26:09 2009
New Revision: 197618
URL: http://svn.freebsd.org/changeset/base/197618
Log:
Special-case "-r X" where X is [0-9.]+ to mean "-r X-RELEASE".
Tripped over by: too many people to count
MFC after: 1 month
Modified:
head/usr.sbin/freebsd-update/freebsd-update.sh
Modified: head/usr.sbin/freebsd-update/freebsd-update.sh
==============================================================================
--- head/usr.sbin/freebsd-update/freebsd-update.sh Tue Sep 29 16:19:48 2009 (r197617)
+++ head/usr.sbin/freebsd-update/freebsd-update.sh Tue Sep 29 16:26:09 2009 (r197618)
@@ -284,6 +284,9 @@ config_TargetRelease () {
else
return 1
fi
+ if echo ${TARGETRELEASE} | grep -qE '^[0-9.]+$'; then
+ TARGETRELEASE="${TARGETRELEASE}-RELEASE"
+ fi
}
# Define what happens to output of utilities
More information about the svn-src-head
mailing list