[darwinbuild-changes] [544] trunk/darwinbuild/darwinbuild.in
source_changes at macosforge.org
source_changes at macosforge.org
Sun Aug 9 13:38:28 PDT 2009
Revision: 544
http://trac.macosforge.org/projects/darwinbuild/changeset/544
Author: wsiegrist at apple.com
Date: 2009-08-09 13:38:28 -0700 (Sun, 09 Aug 2009)
Log Message:
-----------
Whitespace cleanup
Modified Paths:
--------------
trunk/darwinbuild/darwinbuild.in
Modified: trunk/darwinbuild/darwinbuild.in
===================================================================
--- trunk/darwinbuild/darwinbuild.in 2009-08-09 20:33:01 UTC (rev 543)
+++ trunk/darwinbuild/darwinbuild.in 2009-08-09 20:38:28 UTC (rev 544)
@@ -155,51 +155,51 @@
[ -d .build ] || mkdir .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"
+ # 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
+ # 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/
+ # user provided user at host:/path/file.plist
+ filename=$(basename $build)
+ scp $build .build/
fi
build=$(echo "$filename" | sed 's/.plist$//')
echo "$build" > .build/build
- ###
- ### Create the build root
- ###
+ ###
+ ### Create the build root
+ ###
stamp=$(date +'%Y%m%d%H%M%S')
if [ "$3" == "-nfs" ]; then
- mkdir -p $NFSDIR
- mkdir -p BuildRoot
- exportline="${PWDP}/${NFSDIR} -maproot=0:10"
- grep "$exportline" /etc/exports >> /dev/null 2>&1
- if [ ! $? -eq 0 ]; then
- echo "Adding build root to NFS exports file ..."
- echo "# Added by darwinbuild on ${stamp}" >> /etc/exports
- echo $exportline >> /etc/exports
- fi
- nfsd update
- echo "Checking exports file ..."
- nfsd checkexports
+ mkdir -p $NFSDIR
+ mkdir -p BuildRoot
+ exportline="${PWDP}/${NFSDIR} -maproot=0:10"
+ grep "$exportline" /etc/exports >> /dev/null 2>&1
+ if [ ! $? -eq 0 ]; then
+ echo "Adding build root to NFS exports file ..."
+ echo "# Added by darwinbuild on ${stamp}" >> /etc/exports
+ echo $exportline >> /etc/exports
+ fi
+ nfsd update
+ echo "Checking exports file ..."
+ nfsd checkexports
elif [ "$3" == "-nodmg" ]; then
- mkdir -p BuildRoot
+ mkdir -p BuildRoot
else
- echo "Creating build root disk image ..."
- DMGVOLUME="BuildRoot_${build}_${stamp}"
- hdiutil create -size 1t -fs HFSX -quiet \
- -volname $DMGVOLUME \
- $DMGFILE
- ln -s "/Volumes/${DMGVOLUME}" BuildRoot
+ echo "Creating build root disk image ..."
+ DMGVOLUME="BuildRoot_${build}_${stamp}"
+ hdiutil create -size 1t -fs HFSX -quiet \
+ -volname $DMGVOLUME \
+ $DMGFILE
+ ln -s "/Volumes/${DMGVOLUME}" BuildRoot
fi
###
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20090809/6151354c/attachment-0001.html>
More information about the darwinbuild-changes
mailing list