packages/ssoinabox-webui/build
changeset 0 3906ca745819
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/ssoinabox-webui/build	Tue Jan 08 23:13:29 2013 -0500
@@ -0,0 +1,31 @@
+#!/bin/bash
+# :mode=shellscript:
+set -e
+
+#oldcwd="`pwd`"
+
+#mkdir root
+
+#cd /
+#tar c \
+#	--exclude=\*~ \
+#	--exclude=usr/local/share/ssoinabox/htdocs/includes/templates/compiled \
+#	-f - \
+#	etc/cron.d/ssoinabox \
+#	usr/local/share/ssoinabox \
+#	usr/local/share/weblogin/ssoinabox \
+#	| \
+#		tar xCf "$oldcwd/root" -
+
+#cd "$oldcwd"
+cp -a DEBIAN root/
+cd root
+version="`cat DEBIAN/control | grep ^Version: | sed -re 's/^Version: //'`"
+pkgname="`cat DEBIAN/control | grep ^Package: | sed -re 's/^Package: //'`"
+arch="`cat DEBIAN/control | grep ^Architecture: | sed -re 's/^Architecture: //'`"
+
+find . -name \*~ | xargs rm -f
+
+dpkg -b . ../${pkgname}_${version}_${arch}.deb
+
+rm -rf root/DEBIAN