summaryrefslogtreecommitdiff
path: root/makedeb
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-12 22:53:50 +0000
committerDana Jansens <danakj@orodu.net>2007-05-12 22:53:50 +0000
commitb7341b136a1374cd29e27eb9a69797142ff4258a (patch)
tree7b3470c2b4ab5ce0de9889dfcc9d5e1d122ce103 /makedeb
parentcb30ea2fdea8d0779e56dce99a27723bc1a500e8 (diff)
make debian paackage with a makedeb script instead. install stuff to the right directories
Diffstat (limited to 'makedeb')
-rwxr-xr-xmakedeb17
1 files changed, 17 insertions, 0 deletions
diff --git a/makedeb b/makedeb
new file mode 100755
index 00000000..7918d91c
--- /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