[Pkg-zsh-commits] [zsh] 01/01: Set $(VENDOR) to sanitized output of "dpkg-vendor --query vendor"
Axel Beckert
abe at deuxchevaux.org
Wed Aug 5 20:01:38 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch debian
in repository zsh.
commit a248c1e0f98fd04ebbc8e968431eae9fa79c297c
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Wed Aug 5 21:23:17 2015 +0200
Set $(VENDOR) to sanitized output of "dpkg-vendor --query vendor"
Closes: #794696
---
debian/rules | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/debian/rules b/debian/rules
index 2766e4a..97bf976 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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git
More information about the Pkg-zsh-commits
mailing list