]> scripts.mit.edu Git - wizard.git/commitdiff
Add unfurl script, for help with migrating old installs.
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 19 May 2009 04:34:22 +0000 (00:34 -0400)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 19 May 2009 04:34:22 +0000 (00:34 -0400)
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
bin/unfurl [new file with mode: 0755]

diff --git a/bin/unfurl b/bin/unfurl
new file mode 100755 (executable)
index 0000000..520e73a
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash -e
+if [[ "$1" = "" ]]
+then
+    echo "Usage: $0 app-1.2.3 app"
+    echo "Takes a app-1.2.3 folder from deploy and pastes it over app"
+    exit 1
+fi
+tar -xvf $1/$1.tar.gz
+rm $1/$1.tar.gz
+cd $1
+patch -p0 < $1.patch
+rm $1.patch
+cd ..
+cp -Rp $1/. $2