]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Remove and symlink the Doxygen-generated jquery copies
authorRuss Allbery <rra@debian.org>
Thu, 16 Jun 2011 16:03:35 +0000 (09:03 -0700)
committerRuss Allbery <rra@debian.org>
Mon, 18 Jul 2011 23:53:11 +0000 (16:53 -0700)
* Remove and symlink the copies of jquery generated by Doxygen and add a
  Recommends on libjs-jquery for openafs-doc.

debian/control
debian/rules

index b9ef4aaf28970e9ad9c14fbd095863227ec8da93..7d6963a73490c243e8faaa3b136b50643b626f31 100644 (file)
@@ -93,6 +93,7 @@ Package: openafs-doc
 Section: doc
 Architecture: all
 Depends: ${misc:Depends}
+Recommends: libjs-jquery
 Description: AFS distributed filesystem documentation
  AFS is a distributed filesystem allowing cross-platform sharing of files
  among multiple computers.  Facilities are provided for access control,
index 4beacc7c16be9cc06ea667d54f25fb7c168991f7..5232c05abd2c70bddb1031ba59a37cf019703e36 100755 (executable)
@@ -229,6 +229,14 @@ override_dh_installinit:
 override_dh_installdocs:
        dh_installdocs $(DOC_PACKAGES) --link-doc=openafs-client
        dh_installdocs --remaining-packages
+       set -e; if [ -d "$(DOCS)" ] ; then \
+           for d in arch-overview bos-spec fs-cm-spec rx-spec \
+                    vldb-vol-spec ; do \
+               rm $(DOCS)/html/$$d/jquery.js ; \
+               ln -s /usr/share/javascript/jquery/jquery.min.js \
+                   $(DOCS)/html/$$d/jquery.js ; \
+           done ; \
+       fi
 
 # Install the upstream NEWS file as the upstream changelog.
 override_dh_installchangelogs: