projects
/
dana
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make clang happier
[dana/openbox.git]
/
makedeb
diff --git
a/makedeb
b/makedeb
index
78d09d4
..
ec0d620
100755
(executable)
--- a/
makedeb
+++ b/
makedeb
@@
-1,9
+1,22
@@
#!/bin/sh
#!/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)
# get the version from configure.ac
VERSION=$(grep AC_INIT\(\\\[openbox\\] configure.ac|cut -d [ -f 3-|cut -d ] -f 1)
-echo "Building deb for openbox-$VERSION"
+echo
+echo "Building deb for openbox-$VERSION-0$APPEND"
+echo
TIME="$(date '+%a, %d %B %Y %T %z')"
TIME="$(date '+%a, %d %B %Y %T %z')"
@@
-11,10
+24,10
@@
IN=debian/changelog.in
OUT=debian/changelog
# make sure configure gets run with the right parameters
OUT=debian/changelog
# make sure configure gets run with the right parameters
-make distclean >/dev/null || rm -f config.status
+make distclean >
/dev/null || rm -f config.status
rm -f $OUT
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 && \
fakeroot debian/rules binary && \
-make distclean >/dev/null
+make distclean >
/dev/null