From: Axel Beckert Date: Thu, 17 Jan 2013 01:23:39 +0000 (+0100) Subject: Debian package: Use variable for common path in debian/rules X-Git-Tag: debian-1.0--pre-1+git160130-1~192 X-Git-Url: https://repo.or.cz/w/conkeror.git/commitdiff_plain/8867f71e1f76b6b8daa5a7545bddc2a35e3dcfd3 Debian package: Use variable for common path in debian/rules --- diff --git a/debian/rules b/debian/rules index a649b6d..7e1eea6 100755 --- a/debian/rules +++ b/debian/rules @@ -8,8 +8,8 @@ export DH_OPTIONS # Generating a xulrunner build id and other strings DEBIAN_VERSION := $(shell echo -n `head -1 debian/changelog | sed -e 's/^.*(\(.*\)).*$$/\\1/'`) - BUILDID := $(shell echo -n `whoami`@`hostname`)_$(shell date +%s) +USC = $(CURDIR)/debian/conkeror/usr/share/conkeror DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk @@ -45,11 +45,11 @@ install-indep: # Add generated Build ID and Debian version to version output sed -e 's/BuildID=git/BuildID=${BUILDID}/;s/^Version=\(.*\)$$/Version=\1 (Debian-${DEBIAN_VERSION})/' \ - -i $(CURDIR)/debian/conkeror/usr/share/conkeror/application.ini + -i $(USC)/application.ini # Use Debian version for M-x version output sed -e 's/Version=\(.*\)/Version=\1 (Debian-${DEBIAN_VERSION})/' \ - -i $(CURDIR)/debian/conkeror/usr/share/conkeror/components/application.js + -i $(USC)/components/application.js install-arch: dh_testdir