source:
Dev/trunk/deploy.sh
@
515
Last change on this file since 515 was 514, checked in by hendrikvanantwerpen, 11 years ago | |
---|---|
|
|
File size: 366 bytes |
Rev | Line | |
---|---|---|
[469] | 1 | #!/bin/sh |
2 | ||
[497] | 3 | . ./env.sh |
4 | ||
[476] | 5 | RELBUILDDIR=../build |
[469] | 6 | |
[476] | 7 | COMMITMSG="Deployment of revision `svnversion .` on `date`" |
[469] | 8 | |
[476] | 9 | echo "$COMMITMSG..." |
10 | ||
[469] | 11 | if [ ! -d "$DEPLOYDIR" ]; then |
12 | git clone "$DEPLOYURL" "$DEPLOYDIR" | |
13 | fi | |
14 | ||
[476] | 15 | (cd "$DEPLOYDIR" && \ |
16 | git pull && \ | |
17 | rm -rf * && \ | |
18 | cp -r "$RELBUILDDIR"/* . && \ | |
[514] | 19 | git add -A . && \ |
[476] | 20 | git commit -a -m "$COMMITMSG" && \ |
21 | git push) | |
22 | ||
23 | echo "Done." |
Note: See TracBrowser
for help on using the repository browser.