]> scripts.mit.edu Git - wizard.git/blobdiff - bin/unfurl
Add unfurl script, for help with migrating old installs.
[wizard.git] / bin / unfurl
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