summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2014-11-12 00:25:39 +0100
committerAxel Beckert <abe@deuxchevaux.org>2014-11-12 00:36:55 +0100
commit7b632623b115b81dbda65791f6c51a62a1a9e999 (patch)
treee25d46921c9f725b5b32ce2e3ff88c8f3e3a13dc
parentc31b5c626fbac6150ce945a7c054f9173d771409 (diff)
downloadzsh-7b632623b115b81dbda65791f6c51a62a1a9e999.tar.gz
zsh-7b632623b115b81dbda65791f6c51a62a1a9e999.zip
Simplify Simon's patch by making /usr/share/doc/zsh/doc a symlink to ../zsh-common
Avoids unpack errors probably caused by having _two_ binary packages containing the directory which was previously a symlink.
-rwxr-xr-xdebian/rules13
-rw-r--r--debian/zsh-common.dirs1
-rw-r--r--debian/zsh.links3
3 files changed, 3 insertions, 14 deletions
diff --git a/debian/rules b/debian/rules
index a82db996b..8408b9c1e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -155,15 +155,6 @@ binary-indep: build-indep binary-arch-dynamic
dh_installchangelogs -pzsh-doc -pzsh-common
dh_lintian -i
dh_compress -i -Xpdf
- set -e; cd debian/zsh-common/usr/share/doc/zsh-common; for x in *; do \
- case "$$x" in \
- (copyright|changelog.Debian.gz) \
- ;; \
- (*) \
- ln -s ../zsh-common/$$x ../zsh/$$x; \
- ;; \
- esac; \
- done
dh_fixperms -i
dh_installdeb -i
dh_md5sums -i
@@ -193,10 +184,6 @@ binary-arch-dynamic: build-arch
dh_installdocs -pzsh -pzsh-dbg --link-doc=zsh
dh_installchangelogs -pzsh
- # These are in zsh-common and there is no Policy reason why
- # they can't be
- rm -v -f debian/zsh/usr/share/doc/zsh/changelog
- rm -v -f debian/zsh/usr/share/doc/zsh/NEWS.Debian
binary-arch-static: build-static
dh_testdir
diff --git a/debian/zsh-common.dirs b/debian/zsh-common.dirs
index 51addab78..bf201bbea 100644
--- a/debian/zsh-common.dirs
+++ b/debian/zsh-common.dirs
@@ -1,4 +1,3 @@
etc/zsh
-usr/share/doc/zsh
usr/share/man
usr/share/zsh/help
diff --git a/debian/zsh.links b/debian/zsh.links
new file mode 100644
index 000000000..cb996f26c
--- /dev/null
+++ b/debian/zsh.links
@@ -0,0 +1,3 @@
+/usr/share/doc/zsh-common/changelog.gz /usr/share/doc/zsh/changelog.gz
+/usr/share/doc/zsh-common/examples /usr/share/doc/zsh/examples
+/usr/share/doc/zsh-common /usr/share/doc/zsh/doc