diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2015-08-05 21:23:17 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2015-08-05 21:54:12 +0200 |
commit | a248c1e0f98fd04ebbc8e968431eae9fa79c297c (patch) | |
tree | 70f99d795986400fdaefe4f21d0f7f6fb4f98c13 /debian/rules | |
parent | ce48f8d0104c6b12be5c71216bbff1f671d49da0 (diff) | |
download | zsh-a248c1e0f98fd04ebbc8e968431eae9fa79c297c.tar.gz zsh-a248c1e0f98fd04ebbc8e968431eae9fa79c297c.zip |
Set $(VENDOR) to sanitized output of "dpkg-vendor --query vendor"
Closes: #794696
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 2766e4a72..97bf9769d 100755 --- a/debian/rules +++ b/debian/rules @@ -12,6 +12,8 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk H_LDFLAGS = $(LDFLAGS) +VENDOR=$(shell dpkg-vendor --query vendor | env LC_ALL=C tr A-Z a-z | env LC_ALL=C tr -d -c '[:alnum:]') + CFLAGS += -Wall -g CONFIGFLAGS = --prefix=/usr @@ -80,6 +82,7 @@ configure-stamp: configure chmod 755 configure mkdir -p obj/testhome dh_auto_configure -B obj -- $(CONFIGFLAGS) + sed -e 's/#define VENDOR "pc"/#define VENDOR "$(VENDOR)"/' -i obj/config.h touch $@ configure-static-stamp: configure @@ -89,6 +92,7 @@ configure-static-stamp: configure # cp debian/static.conf obj-static/Src/mymods.conf sed -i -e 's/files.mdd link=no/files.mdd link=static/;s/stat.mdd link=no/stat.mdd link=static/' \ obj-static/config.modules + sed -e 's/#define VENDOR "pc"/#define VENDOR "$(VENDOR)"/' -i obj-static/config.h touch $@ clean: |