]> Dogcows Code - chaz/openbox/blobdiff - makedeb
make debian paackage with a makedeb script instead. install stuff to the right direct...
[chaz/openbox] / makedeb
diff --git a/makedeb b/makedeb
new file mode 100755 (executable)
index 0000000..7918d91
--- /dev/null
+++ b/makedeb
@@ -0,0 +1,17 @@
+#!/bin/sh -x
+
+# get the version from configure.ac
+VERSION=$(grep AC_INIT\(\\\[openbox\\] configure.ac|cut -d [ -f 3-|cut -d ] -f 1)
+
+TIME="$(date '+%a, %d %B %Y %T %z')"
+
+IN=debian/changelog.in
+OUT=debian/changelog
+
+# make sure configure gets run with the right parameters
+make distclean || rm -f config.status
+
+rm -f $OUT
+
+sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \
+fakeroot debian/rules binary
This page took 0.024837 seconds and 4 git commands to generate.