make debian paackage with a makedeb script instead. install stuff to the right direct...
[dana/openbox.git] / makedeb
1 #!/bin/sh -x
2
3 # get the version from configure.ac
4 VERSION=$(grep AC_INIT\(\\\[openbox\\] configure.ac|cut -d [ -f 3-|cut -d ] -f 1)
5
6 TIME="$(date '+%a, %d %B %Y %T %z')"
7
8 IN=debian/changelog.in
9 OUT=debian/changelog
10
11 # make sure configure gets run with the right parameters
12 make distclean || rm -f config.status
13
14 rm -f $OUT
15
16 sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \
17 fakeroot debian/rules binary