diff options
| author | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-01 15:58:20 -0400 |
|---|---|---|
| committer | Bjoern B. Brandenburg <bbb@cs.unc.edu> | 2010-11-01 15:58:20 -0400 |
| commit | 0863fa86da554b29f7ff0b24b8c0ec09ed024792 (patch) | |
| tree | 7be8d0cf27d75672164888cec8ba4ce4ec7a0a15 | |
| parent | bd30adeeee4931e1897a6156472777fc0d5b3259 (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-x | make-shared-repo | 5 |
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 |
| 11 | REMOTE_PATH="/cvs/proj/litmus/repo/${REPO}.git" | 11 | REMOTE_PATH="/cvs/proj/litmus/repo/${REPO}.git" |
| 12 | SERVER="cvs.cs.unc.edu" | 12 | if [ -z "$SERVER" ] |
| 13 | then | ||
| 14 | SERVER="cvs.cs.unc.edu" | ||
| 15 | fi | ||
| 13 | 16 | ||
| 14 | # command to execute after repository creation | 17 | # command to execute after repository creation |
| 15 | CHMOD="/cvs/proj/litmus/sw/bin/set_repo_rights --quiet" | 18 | CHMOD="/cvs/proj/litmus/sw/bin/set_repo_rights --quiet" |
