X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=blobdiff_plain;f=makedeb;h=ec0d62066e2eb5481b8a8e58e190d65e02da6d92;hp=9687ccd47256a6c85e84bb8e40ce40206411e0a8;hb=7f5347897754164c9688d7e3d882411283c13a55;hpb=d676c11881a1df413a6b204e101a378125534920 diff --git a/makedeb b/makedeb index 9687ccd..ec0d620 100755 --- a/makedeb +++ b/makedeb @@ -1,10 +1,21 @@ #!/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" +echo "Building deb for openbox-$VERSION-0$APPEND" echo TIME="$(date '+%a, %d %B %Y %T %z')" @@ -17,6 +28,6 @@ make distclean > /dev/null || rm -f config.status rm -f $OUT -sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \ +sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION-0$APPEND!" $IN >$OUT && \ fakeroot debian/rules binary && \ make distclean > /dev/null