Debian package: Use variable for common path in debian/rules
authorAxel Beckert <abe@deuxchevaux.org>
Thu, 17 Jan 2013 01:23:39 +0000 (17 02:23 +0100)
committerAxel Beckert <abe@deuxchevaux.org>
Thu, 17 Jan 2013 01:23:39 +0000 (17 02:23 +0100)
debian/rules

index a649b6d..7e1eea6 100755 (executable)
@@ -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