Re: mkdir in shell script
Re: mkdir in shell script
- Subject: Re: mkdir in shell script
- From: Chuck Soper <email@hidden>
- Date: Mon, 23 Aug 2004 15:17:48 -0700
Creed,
Thanks for the suggestion. I tried the script below. It doesn't
return any errors, but it doesn't create the directory either. Does
it work for you?
Chuck
At 3:04 PM -0700 8/23/04, Creed Erickson wrote:
On Aug 23, 2004, at 1:07 PM, Chuck Soper wrote:
#the script:
echo "inBuildPhaseShellScript"
srcPath="$SRCROOT/data"
destPath="$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/data123"
echo "path: $destPath"
if [ ! -d "$destPath" ]; then
mkdir "$destPath"
fi
Try this:
#!/bin/sh
echo "inBuildPhaseShellScript"
srcPath="$SRCROOT/data"
destPath="$TARGET_BUILD_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH/data123"
export srcPath destPath
echo "path: $destPath"
if [ ! -d "$destPath" ]; then
mkdir "$destPath"
fi
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.