X-Git-Url: http://git.openbox.org/?p=dana%2Fopenbox.git;a=blobdiff_plain;f=makedeb;h=ec0d62066e2eb5481b8a8e58e190d65e02da6d92;hp=7918d91caf3e782494a905383a03d490ae50202d;hb=73608702b8d450ed3ccb64d5084a4f1b17fdb895;hpb=b7341b136a1374cd29e27eb9a69797142ff4258a diff --git a/makedeb b/makedeb index 7918d91..ec0d620 100755 --- a/makedeb +++ b/makedeb @@ -1,17 +1,33 @@ -#!/bin/sh -x +#!/bin/sh + +if test "$1" = "ubuntu"; then + APPEND="ubuntu1"; +else + if test "$1" = "debian"; then + APPEND=""; + else + echo "Usage: makedeb [ubuntu|debian]"; + exit 1; + fi +fi # get the version from configure.ac VERSION=$(grep AC_INIT\(\\\[openbox\\] configure.ac|cut -d [ -f 3-|cut -d ] -f 1) +echo +echo "Building deb for openbox-$VERSION-0$APPEND" +echo + 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 +make distclean > /dev/null || rm -f config.status rm -f $OUT -sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \ -fakeroot debian/rules binary +sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION-0$APPEND!" $IN >$OUT && \ +fakeroot debian/rules binary && \ +make distclean > /dev/null