diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-16 14:36:51 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-16 14:36:51 +0000 |
| commit | fbae01436c9fd77e628384072eae1ba649d07f00 (patch) | |
| tree | b0d2c2ee5a772ff76d2514e8125eed604c4cc9a2 /makedeb | |
| parent | b43b612e3bb2a465abf968226de12d34b199b5ec (diff) | |
updates to build debian and ubuntu debs. make man page say what webpage will probably say.
Diffstat (limited to 'makedeb')
| -rwxr-xr-x | makedeb | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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$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$APPEND!" $IN >$OUT && \ fakeroot debian/rules binary && \ make distclean > /dev/null |
