source: Dev/trunk/deploy.sh @ 504

Last change on this file since 504 was 497, checked in by hendrikvanantwerpen, 11 years ago
  • Better names for db backup and sync scripts.
  • Added SurveyRun? deletion in UI and prevent on server when a run has replies.
  • Property svn:executable set to *
File size: 363 bytes
Line 
1#!/bin/sh
2
3. ./env.sh
4
5RELBUILDDIR=../build
6
7COMMITMSG="Deployment of revision `svnversion .` on `date`"
8
9echo "$COMMITMSG..."
10
11if [ ! -d "$DEPLOYDIR" ]; then
12    git clone "$DEPLOYURL" "$DEPLOYDIR"
13fi
14
15(cd "$DEPLOYDIR" && \
16 git pull && \
17 rm -rf * && \
18 cp -r "$RELBUILDDIR"/* . && \
19 git add . && \
20 git commit -a -m "$COMMITMSG" && \
21 git push)
22
23echo "Done."
Note: See TracBrowser for help on using the repository browser.