source: Dev/trunk/deploy.sh @ 474

Last change on this file since 474 was 472, checked in by hendrikvanantwerpen, 12 years ago

Fixed deploy script.
Fix for ... in ... complaints by jshint.
Fix a typo.

  • Property svn:executable set to *
File size: 338 bytes
Line 
1#!/bin/sh
2
3DEPLOYURL=git@heroku.com:quod-erat.git
4DEPLOYDIR=quod-erat.git
5
6if [ -z "$1" ]; then
7    echo "Usage: $o <commit message>"
8    exit 1
9fi
10
11if [ ! -d "$DEPLOYDIR" ]; then
12    git clone "$DEPLOYURL" "$DEPLOYDIR"
13fi
14
15(cd "$DEPLOYDIR" && git pull && rm -rf * && cp -r ../build/* . && git add . && git commit -a -m "$1" && git push)
Note: See TracBrowser for help on using the repository browser.