]> Dogcows Code - chaz/openbox/commitdiff
make debian paackage with a makedeb script instead. install stuff to the right direct...
authorDana Jansens <danakj@orodu.net>
Sat, 12 May 2007 22:53:50 +0000 (22:53 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 12 May 2007 22:53:50 +0000 (22:53 +0000)
Makefile.am
debian/rules
makedeb [new file with mode: 0755]

index a4e1fbb2e4a1b4f42d3a6cf9bc128ff36dbd94b1..602a59c14615ca42f12687561f437f0ac2c676f6 100644 (file)
@@ -363,7 +363,6 @@ dist_rc_DATA = \
        data/menu.xml
 
 edit = $(SED) \
-       -e 's!@time\@!$(shell date "+%a, %d %B %Y %T %z")!' \
        -e 's!@version\@!$(VERSION)!' \
        -e 's!@bindir\@!$(bindir)!'
 
@@ -456,10 +455,4 @@ distclean-local:
                done \
        done
 
-deb:   Makefile
-       $(edit) $(srcdir)/debian/changelog.in >$(srcdir)/debian/changelog
-       fakeroot debian/rules binary
-
-#      dpkg-buildpackage -b -rfakeroot -f openbox-$(VERSION).tar.gz
-
-.PHONY: doc deb
+.PHONY: doc
index f4cf390b6b9784b977f131c3aca0fb8864e3cda1..0d63b6505764475f28443176964ccab4c7960da8 100755 (executable)
@@ -27,7 +27,7 @@ endif
 config.status: configure
        dh_testdir
        # Add here commands to configure the package.
-       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+       ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
 
 
 build: build-stamp
diff --git a/makedeb b/makedeb
new file mode 100755 (executable)
index 0000000..7918d91
--- /dev/null
+++ b/makedeb
@@ -0,0 +1,17 @@
+#!/bin/sh -x
+
+# get the version from configure.ac
+VERSION=$(grep AC_INIT\(\\\[openbox\\] configure.ac|cut -d [ -f 3-|cut -d ] -f 1)
+
+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
+
+rm -f $OUT
+
+sed -e "s!@time@!$TIME!" -e "s!@version@!$VERSION!" $IN >$OUT && \
+fakeroot debian/rules binary
This page took 0.025844 seconds and 4 git commands to generate.