add conffiles
[dana/openbox.git] / makedeb
1 #!/bin/sh
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 echo
7 echo "Building deb for openbox-$VERSION"
8 echo
9
10 TIME="$(date '+%a, %d %B %Y %T %z')"
11
12 IN=debian/changelog.in
13 OUT=debian/changelog
14
15 # make sure configure gets run with the right parameters
16 make distclean > /dev/null || rm -f config.status
17
18 rm -f $OUT
19
20 sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \
21 fakeroot debian/rules binary && \
22 make distclean > /dev/null