Quantcast

Added script to zip up the addon

Kevin Lyles [11-06-09 - 22:10]
Added script to zip up the addon
Filename
make-zip.sh
diff --git a/make-zip.sh b/make-zip.sh
new file mode 100755
index 0000000..69b24e3
--- /dev/null
+++ b/make-zip.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+VERSION="`grep '^## Version: ' WeightsWatcher.toc | sed -e 's/.* //'`"
+
+## Debug code
+# echo "'$VERSION'"
+# exit
+
+cd .. && 7z a -tzip -xr!'.git*' -xr!'Todo*' -xr!'*~' -xr-!'WeightsWatcher/goals' -xr-!'WeightsWatcher/future-features' -xr-!'WeightsWatcher/wowhead values' -xr-!'WeightsWatcher/make-zip.sh' -mx=9 WeightsWatcher-$VERSION.zip WeightsWatcher/