summaryrefslogtreecommitdiff
path: root/bin/Package
diff options
context:
space:
mode:
Diffstat (limited to 'bin/Package')
-rwxr-xr-xbin/Package16
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/Package b/bin/Package
new file mode 100755
index 0000000..f7f20b8
--- /dev/null
+++ b/bin/Package
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# run this script as root
+
+set -x
+
+V=$(git describe | sed -es/libnet-//)
+D=$(date --rfc-822)
+
+rm -rf debian
+cp -r ../debian ./
+sed -es"/VERSION/$V/" -es"/DATE/$D/" < ../debian/changelog > debian/changelog
+cat debian/changelog
+
+dpkg-buildpackage -b -us -uc -i -I.swp
+