[darwinbuild-changes] [546] trunk/darwinbuild/darwinbuild.in
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 13 12:00:35 PDT 2009
Revision: 546
http://trac.macosforge.org/projects/darwinbuild/changeset/546
Author: wsiegrist at apple.com
Date: 2009-08-13 12:00:33 -0700 (Thu, 13 Aug 2009)
Log Message:
-----------
Fix initialization so that plists are actually fetched when doing "-init <build>"
Modified Paths:
--------------
trunk/darwinbuild/darwinbuild.in
Modified: trunk/darwinbuild/darwinbuild.in
===================================================================
--- trunk/darwinbuild/darwinbuild.in 2009-08-10 21:42:07 UTC (rev 545)
+++ trunk/darwinbuild/darwinbuild.in 2009-08-13 19:00:33 UTC (rev 546)
@@ -154,20 +154,17 @@
[ -d Logs ] || mkdir Logs
[ -d .build ] || mkdir .build
+ filename=$(basename "$build")
if [ -f "$build" ]; then
# user gave a local path to a plist
- filepath="$build"
- filename=$(basename "$filepath")
# since we don't want to download this, copy it
cp "$filepath" ".build/$filename"
elif [ $(echo $build | grep 'http://') ]; then
# user gave a URL to a webserver
host=$(dirname $build)
- filename=$(basename $build)
Download .build $filename $host
elif [ $(echo $build | grep '\w@\w') ]; then
# user provided user at host:/path/file.plist
- filename=$(basename $build)
scp $build .build/
fi
build=$(echo "$filename" | sed 's/.plist$//')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20090813/0cbaab26/attachment.html>
More information about the darwinbuild-changes
mailing list