X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=makedeb;fp=makedeb;h=7918d91caf3e782494a905383a03d490ae50202d;hb=b7341b136a1374cd29e27eb9a69797142ff4258a;hp=0000000000000000000000000000000000000000;hpb=cb30ea2fdea8d0779e56dce99a27723bc1a500e8;p=chaz%2Fopenbox diff --git a/makedeb b/makedeb new file mode 100755 index 00000000..7918d91c --- /dev/null +++ b/makedeb @@ -0,0 +1,17 @@ +#!/bin/sh -x + +# get the version from configure.ac +VERSION=$(grep AC_INIT\(\\\[openbox\\] configure.ac|cut -d [ -f 3-|cut -d ] -f 1) + +TIME="$(date '+%a, %d %B %Y %T %z')" + +IN=debian/changelog.in +OUT=debian/changelog + +# make sure configure gets run with the right parameters +make distclean || rm -f config.status + +rm -f $OUT + +sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \ +fakeroot debian/rules binary