chiark / gitweb /
compliance with Policy 3.2.1
authorjoy <joy@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Wed, 20 Sep 2000 15:17:45 +0000 (15:17 +0000)
committerjoy <joy@313b444b-1b9f-4f58-a734-7bb04f332e8d>
Wed, 20 Sep 2000 15:17:45 +0000 (15:17 +0000)
git-svn-id: svn://anonscm.debian.org/ddp/manuals/trunk/developers-reference@1013 313b444b-1b9f-4f58-a734-7bb04f332e8d

debian/control
debian/postinst
debian/prerm
debian/rules

index a363240..f83ca84 100644 (file)
@@ -2,7 +2,8 @@ Source: developers-reference
 Section: doc
 Priority: optional
 Maintainer: Adam Di Carlo <aph@debian.org>
-Standards-Version: 3.0.1
+Standards-Version: 3.2.1
+Build-Depends: debiandoc-sgml, tetex-bin, tetex-extra
 
 Package: developers-reference
 Architecture: all
index 2022f20..63b4f9d 100644 (file)
@@ -17,10 +17,14 @@ case "$1" in
     ;;
 esac
 
+if [ "$1" = "configure" ]; then
+  if [ -d /usr/doc -a ! -e /usr/doc/developers-reference -a -d /usr/share/doc/developers-reference ]; then
+    ln -sf ../share/doc/developers-reference /usr/doc/developers-reference
+  fi
+fi
+
 if [ -x /usr/sbin/install-docs ]; then
     /usr/sbin/install-docs -i /usr/share/doc-base/developers-reference
 fi
 
 exit 0
-
-
index dc19579..ba7b3df 100644 (file)
@@ -1,7 +1,12 @@
 #!/bin/sh
 
-if [ -x /usr/sbin/install-docs ]; then
-    /usr/sbin/install-docs -r developers-reference
+if [ "$1" = "remove" -o "$1" = "upgrade" ]; then
+  if command -v install-docs >/dev/null 2>&1; then
+    install-docs -r developers-reference
+  fi
+  if [ -L /usr/doc/developers-reference ]; then
+    rm -f /usr/doc/developers-reference
+  fi
 fi
 
 exit 0
index 645e436..f8b06e3 100755 (executable)
@@ -9,7 +9,7 @@ package         := developers-reference
 
 # directory abstraction
 prefix         := debian/tmp
-docdir         := $(prefix)/usr/doc/$(package)
+docdir         := $(prefix)/usr/share/doc/$(package)
 sharedir       := $(prefix)/usr/share/$(package)
 docbasedir     := $(prefix)/usr/share/doc-base