template.sh
1 |
#!/bin/sh |
---|---|
2 |
|
3 |
SCM_REPO_PATH=$1 |
4 |
SCM_TYPE=$2 |
5 |
SCM_PROJECT=$3 |
6 |
|
7 |
SCM_REPO_NAME=$(basename $SCM_REPO_PATH) |
8 |
SCM_REPO_ROOT=$(dirname $SCM_REPO_PATH) |
9 |
|
10 |
case "$SCM_TYPE" in |
11 |
svn) |
12 |
;; |
13 |
git) |
14 |
;; |
15 |
mercurial) |
16 |
;; |
17 |
bazaar) |
18 |
;; |
19 |
*) |
20 |
echo "SCM not supported: $SCM_TYPE" >&2 |
21 |
;; |
22 |
esac |
23 |
|
24 |
exit 0 |