]> scripts.mit.edu Git - wizard.git/blob - bin/unfurl
feff917b136aec5c567c0bd0858974e06dfcdcae
[wizard.git] / bin / unfurl
1 #!/bin/bash -e
2 if [[ "$1" = "" ]]
3 then
4     echo "Usage: $0 app-1.2.3 app"
5     echo "Takes a app-1.2.3 folder from deploy and pastes it over app"
6     exit 1
7 fi
8 tar -xvf $1/$1.tar.gz
9 rm $1/$1.tar.gz
10 cd $1
11 patch -p1 < $1.patch
12 rm $1.patch
13 cd ..
14 cp -Rp $1/. $2