Require user to specify version string as sole argument.
authorChris Hanson <org/chris-hanson/cph>
Fri, 14 Apr 2006 18:33:51 +0000 (18:33 +0000)
committerChris Hanson <org/chris-hanson/cph>
Fri, 14 Apr 2006 18:33:51 +0000 (18:33 +0000)
v7/dist/make-src-files

index f0da3e531fad93e4ee3e8254a51ce9a300227cb8..afbc30a6684017fac11f33a73f135e831973b707 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $Id: make-src-files,v 1.23 2006/02/02 03:06:47 cph Exp $
+# $Id: make-src-files,v 1.24 2006/04/14 18:33:51 cph Exp $
 #
 # Copyright 2000,2001,2002,2003,2005,2006 Massachusetts Institute of Technology
 #
 
 . /scheme/v7/dist/release-prefix
 
-if [ $# -eq 0 ]; then
-    VERSION="$(get_release)"
-elif [ $# -eq 1 ]; then
+if [ $# -eq 1 ]; then
     VERSION="${1}"
 else
-    echo "usage: $0 [VERSION]"
+    echo "usage: $0 VERSION"
     echo "  VERSION may be 'snapshot' to specify today's date"
+    echo "  or 'standard' to specify standard release"
     exit 1
 fi
 
@@ -40,6 +39,9 @@ if [ "${VERSION}" = "snapshot" ]; then
     TAG_FLAG="-D"
     TAG=$(date --iso-8601=seconds)
 else
+    if [ "${VERSION}" = "standard" ]; then
+       VERSION="$(get_release)"
+    fi
     SNAPSHOT_P=
     PREFIX="$(get_release_prefix "${VERSION}")"
     TAG_FLAG="-r"