[PATCH] generic-build-script

Max Bowsher maxb@ukf.net
Tue Jun 8 12:27:00 GMT 2004


* generic-build-script (install): Do not invoke gzip with no arguments, and
    consequently die with "will not write compressed data to a terminal"
    if a package creates usr/share/man or usr/share/info, but does not
    install any man/info pages under it.


Index: generic-build-script
===================================================================
RCS file:
/home/mirror/cvsmirror/cygwin-apps-cvs/packaging/templates/generic-build-scr
ipt,v
retrieving revision 1.22
diff -u -p -r1.22 generic-build-script
--- generic-build-script 31 Mar 2004 00:56:17 -0000 1.22
+++ generic-build-script 8 Jun 2004 12:16:18 -0000
@@ -180,12 +180,13 @@ install() {
     fi ;\
   done &&\
   if [ -d ${instdir}${prefix}/share/info ] ; then \
-    find ${instdir}${prefix}/share/info -name "*.info" | xargs gzip -q ; \
+    find ${instdir}${prefix}/share/info -name "*.info" | \
+      xargs --no-run-if-empty gzip -q ; \
   fi && \
   if [ -d ${instdir}${prefix}/share/man ] ; then \
     find ${instdir}${prefix}/share/man -name "*.1" -o -name "*.3" -o \
       -name "*.3x" -o -name "*.3pm" -o -name "*.5" -o -name "*.6" -o \
-      -name "*.7" -o -name "*.8" | xargs gzip -q ; \
+      -name "*.7" -o -name "*.8" | xargs --no-run-if-empty gzip -q ; \
   fi && \
   templist="" && \
   for f in ${install_docs} ; do \




More information about the Cygwin-apps mailing list