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