quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Quilt-dev] [patch 1/8]


From: gary
Subject: [Quilt-dev] [patch 1/8]
Date: Tue, 13 Sep 2005 22:25:47 +0100

In Mac OS X 10.4 (I run 10.4.2) the chmod command doesn't understand the
`--reference' option. Darwin ports provides a build of coreutils, but
installs it as gchmod.

This patch replaces the one offending chmod invocation with a shell if
statement that is much more portable, and saves the trouble of installing
coreutils especially.

 Makefile.in |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt-HEAD/Makefile.in
===================================================================
--- quilt-HEAD.orig/Makefile.in
+++ quilt-HEAD/Makefile.in
@@ -227,7 +227,7 @@ $(PACKAGE).spec : $(PACKAGE).spec.in $(P
             -e 's:@LOCALEDIR''@:$(localedir):g' \
             -e 's:@DOCSUBDIR''@:$(docdir)/$(PACKAGE)-$(VERSION):g' \
             $< > $@
-       @chmod --reference=$< $@
+       @if test -x $<; then chmod +x $@; fi
 
 Makefile : Makefile.in
        @echo "Please run ./configure by hand"

--
Gary V. Vaughan      ())_.  address@hidden,gnu.org}
Research Scientist   ( '/   http://tkd.kicks-ass.net
GNU Hacker           / )=   http://www.gnu.org/software/libtool
Technical Author   `(_~)_   http://sources.redhat.com/autobook




reply via email to

[Prev in Thread] Current Thread [Next in Thread]