3 # get the version from configure.ac
4 VERSION=$(grep AC_INIT\(\\\[openbox\\] configure.ac|cut -d [ -f 3-|cut -d ] -f 1)
6 echo "Building deb for openbox-$VERSION"
8 TIME="$(date '+%a, %d %B %Y %T %z')"
10 IN=debian/changelog.in
13 # make sure configure gets run with the right parameters
14 make distclean >/dev/null || rm -f config.status
18 sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \
19 fakeroot debian/rules binary && \
20 make distclean >/dev/null