svn commit: r225502 - projects/portbuild/scripts
Mark Linimon
linimon at FreeBSD.org
Mon Sep 12 03:59:43 UTC 2011
Author: linimon (doc,ports committer)
Date: Mon Sep 12 03:59:42 2011
New Revision: 225502
URL: http://svn.freebsd.org/changeset/base/225502
Log:
Remove clause that could never be executed and put it where it properly
belongs. Now you can say 'build create amd64 9-exp-whatever' without
having to remember to append 'latest'.
Modified:
projects/portbuild/scripts/build
Modified: projects/portbuild/scripts/build
==============================================================================
--- projects/portbuild/scripts/build Mon Sep 12 03:31:16 2011 (r225501)
+++ projects/portbuild/scripts/build Mon Sep 12 03:59:42 2011 (r225502)
@@ -516,7 +516,7 @@ if [ $# -ge 1 ]; then
;;
create)
# XXX some way to avoid the latest/previous dance?
- if [ -z "${buildid}" -o "${buildid}" = "latest" ]; then
+ if [ "${buildid}" = "latest" ]; then
buildid=$(now)"."`hostname -s`
elif [ "${buildid}" = "previous" ]; then
echo "Use build clone latest instead"
@@ -557,7 +557,8 @@ case "$cmd" in
;;
create)
if [ -z "${buildid}" ]; then
- usage
+ echo "buildid is empty; forcing to 'latest'"
+ buildid=$(now)"."`hostname -s`
fi
proxy_root create ${arch} ${branch} ${buildid} $@ || exit 1
;;
More information about the svn-src-projects
mailing list