Allow alternate version to be provided as argument.
authorChris Hanson <org/chris-hanson/cph>
Tue, 18 Jun 2002 17:59:21 +0000 (17:59 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 18 Jun 2002 17:59:21 +0000 (17:59 +0000)
v7/dist/make-src-files

index bdb388f416980290e209b79822663c555ecd49e6..ef2a6e044dbad4c87a37517edf3c425b472daebc 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 
-# $Id: make-src-files,v 1.19 2001/11/26 20:26:36 cph Exp $
+# $Id: make-src-files,v 1.20 2002/06/18 17:59:21 cph Exp $
 #
-# Copyright (c) 2000-2001 Massachusetts Institute of Technology
+# Copyright (c) 2000-2002 Massachusetts Institute of Technology
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 
 . /scheme/v7/dist/release-prefix
 
+if [ $# -eq 0 ]; then
+  VERSION="$(get_release)"
+elif [ $# -eq 1 ]; then
+  VERSION="${1}"
+else
+  echo "usage: $0 [VERSION]"
+  exit 1
+fi
+
 INSTALL="install"
 INSTALL_DATA="${INSTALL} -m 644"
-PREFIX="$(get_release_prefix)"
-TAG="$(get_release_tag)"
+PREFIX="$(get_release_prefix "${VERSION}")"
+TAG="$(get_release_tag "${VERSION}")"
 CVS="cvs -d /scheme/cvsroot"
 
 rm -rf ${PREFIX}