[darwinbuild-changes] [131] trunk/darwinbuild/darwinbuild

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 01:49:16 PDT 2006


Revision: 131
          http://trac.macosforge.org/projects/darwinbuild/changeset/131
Author:   ssen
Date:     2006-10-04 01:49:16 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
accept gzip-compressed patch files as well

Modified Paths:
--------------
    trunk/darwinbuild/darwinbuild

Modified: trunk/darwinbuild/darwinbuild
===================================================================
--- trunk/darwinbuild/darwinbuild	2005-07-30 17:26:45 UTC (rev 130)
+++ trunk/darwinbuild/darwinbuild	2006-10-04 08:49:16 UTC (rev 131)
@@ -433,8 +433,11 @@
 	if [ -r "$SourceCache/$patchfile" ]; then
 	    case $patchfile in
 		*.patch)
-		    patch --posix -l -p0 < "$SourceCache/$patchfile"
+		    cat "$SourceCache/$patchfile" | patch --posix -l -p0
 		    ;;
+		*.patch.gz)
+		    gzip -c -d "$SourceCache/$patchfile" | patch --posix -l -p0
+		    ;;
 		*)
 		    echo "Don't know how to apply $patchfile"
 		    ;;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/281a7241/attachment.html


More information about the darwinbuild-changes mailing list