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