[darwinbuild-changes] [260] trunk/darwinbuild/packageRoots.sh

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 02:02:03 PDT 2006


Revision: 260
          http://trac.macosforge.org/projects/darwinbuild/changeset/260
Author:   ssen
Date:     2006-10-04 02:02:03 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
Don't do IFS munging. It was breaking for me
if I had both Headers/ and Roots/. This way is cleaner

Modified Paths:
--------------
    trunk/darwinbuild/packageRoots.sh

Modified: trunk/darwinbuild/packageRoots.sh
===================================================================
--- trunk/darwinbuild/packageRoots.sh	2005-09-16 20:59:31 UTC (rev 259)
+++ trunk/darwinbuild/packageRoots.sh	2006-10-04 09:02:03 UTC (rev 260)
@@ -88,9 +88,7 @@
 	local DIR="$1"
 	local SFX="$2"
 	echo "*** Packaging $DIR"
-	OLDIFS="$IFS"
-	IFS=$'\n'
-	for X in $("$DARWINXREF" version '*') ; do
+	"$DARWINXREF" version '*' | while read X; do
 		Y="${X/-*/}"
 		build_version=$(GetBuildVersion $DARWIN_BUILDROOT/$DIR/$Y/$X*)
 		if [ "$build_version" != "0" -a \
@@ -101,7 +99,6 @@
 			eval $CMD "$DARWIN_BUILDROOT/Packages/$Y$SFX.tar.gz" .
 		fi
 	done
-	IFS="$OLDIFS"
 }
 PackageThem Headers .hdrs
 PackageThem Roots .root

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


More information about the darwinbuild-changes mailing list