Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 2009 16:26:09 +0000 (UTC)
From:      Colin Percival <cperciva@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197618 - head/usr.sbin/freebsd-update
Message-ID:  <200909291626.n8TGQ919089929@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909291626.n8TGQ919089929>