From: Edward Z. Yang Date: Tue, 19 May 2009 04:34:22 +0000 (-0400) Subject: Add unfurl script, for help with migrating old installs. X-Git-Url: https://scripts.mit.edu/gitweb/wizard.git/commitdiff_plain/f701532ea5f5fee35075263170df8f0ab2f1e08c Add unfurl script, for help with migrating old installs. Signed-off-by: Edward Z. Yang --- diff --git a/bin/unfurl b/bin/unfurl new file mode 100755 index 0000000..520e73a --- /dev/null +++ b/bin/unfurl @@ -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