Fix FTBFS with arch-only builds
authorRuss Allbery <rra@debian.org>
Thu, 17 Mar 2011 06:45:27 +0000 (23:45 -0700)
committerRuss Allbery <rra@debian.org>
Thu, 17 Mar 2011 06:45:27 +0000 (23:45 -0700)
* Fix FTBFS with arch-only builds, such as those on the buildds.
  Thanks, Aaron M. Ucko.  (Closes: #618615)

debian/changelog
debian/rules

index 825518f..7b8e158 100644 (file)
@@ -1,3 +1,10 @@
+xmltooling (1.4.1-2) unstable; urgency=low
+
+  * Fix FTBFS with arch-only builds, such as those on the buildds.
+    Thanks, Aaron M. Ucko.  (Closes: #618615)
+
+ -- Russ Allbery <rra@debian.org>  Wed, 16 Mar 2011 23:45:11 -0700
+
 xmltooling (1.4.1-1) unstable; urgency=low
 
   * New upstream release.
index 740fafb..89f93eb 100755 (executable)
@@ -13,9 +13,11 @@ override_dh_auto_configure:
 
 override_dh_installdocs:
        dh_installdocs -A doc/NOTICE.txt
-       rm $(DOCS)/html/jquery.js
-       ln -s /usr/share/javascript/jquery/jquery.min.js \
-           $(DOCS)/html/jquery.js
+       set -e; if [ -d "$(DOCS)" ] ; then \
+           rm $(DOCS)/html/jquery.js ; \
+           ln -s /usr/share/javascript/jquery/jquery.min.js \
+               $(DOCS)/html/jquery.js ; \
+       fi
 
 %:
        dh $@ --with autotools_dev