Diff of /scripts/build.sh [7dac59] .. [d12bd0] Maximize Restore

  Switch to side-by-side view

--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -4,6 +4,16 @@
 mkdir dist
 rm $(find . | grep "~")
 locationhere=$(pwd)
+
+# Extract nsis
+
+if [ ! -e ./winbuild/nsis ]
+then
+cd winbuild
+tar -jxvf nsis.tar.bz2
+cd ..
+fi
+
 export WINEPREFIX="$locationhere/winbuild/nsis"
 ubnverinit=$(bzr version-info | grep revno | sed 's/revno: //')
 
@@ -31,7 +41,12 @@
 
 # Build for distros
 
+if [ "$@" = "" ]
+then
 targetbuildoslist="$(cat targetdistros)"
+else
+targetbuildoslist="$@"
+fi
 
 for targetbuildos in $targetbuildoslist
 do