summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-01 15:58:20 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2010-11-01 15:58:20 -0400
commit0863fa86da554b29f7ff0b24b8c0ec09ed024792 (patch)
tree7be8d0cf27d75672164888cec8ba4ce4ec7a0a15
parentbd30adeeee4931e1897a6156472777fc0d5b3259 (diff)
make-shared-reop: allow default server to be overriden by environment
Just set SERVER in the environment prior to calling make-shared-repo to push to a different server (or with a different user).
-rwxr-xr-xmake-shared-repo5
1 files changed, 4 insertions, 1 deletions
diff --git a/make-shared-repo b/make-shared-repo
index 13fd039..d0df8a9 100755
--- a/make-shared-repo
+++ b/make-shared-repo
@@ -9,7 +9,10 @@ REPO=`basename "$1"`
9 9
10# where to copy it to 10# where to copy it to
11REMOTE_PATH="/cvs/proj/litmus/repo/${REPO}.git" 11REMOTE_PATH="/cvs/proj/litmus/repo/${REPO}.git"
12SERVER="cvs.cs.unc.edu" 12if [ -z "$SERVER" ]
13then
14 SERVER="cvs.cs.unc.edu"
15fi
13 16
14# command to execute after repository creation 17# command to execute after repository creation
15CHMOD="/cvs/proj/litmus/sw/bin/set_repo_rights --quiet" 18CHMOD="/cvs/proj/litmus/sw/bin/set_repo_rights --quiet"