openbox/makedeb

34 lines
724 B
Text
Raw Normal View History

2007-05-12 23:01:46 +00:00
#!/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)
2007-05-13 00:16:11 +00:00
echo
2007-05-18 00:43:04 +00:00
echo "Building deb for openbox-$VERSION-0$APPEND"
2007-05-13 00:16:11 +00:00
echo
2007-05-12 23:01:46 +00:00
TIME="$(date '+%a, %d %B %Y %T %z')"
IN=debian/changelog.in
OUT=debian/changelog
# make sure configure gets run with the right parameters
2007-05-13 00:16:11 +00:00
make distclean > /dev/null || rm -f config.status
rm -f $OUT
2007-05-18 00:43:04 +00:00
sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION-0$APPEND!" $IN >$OUT && \
2007-05-12 23:01:46 +00:00
fakeroot debian/rules binary && \
2007-05-13 00:16:11 +00:00
make distclean > /dev/null