From 7eff9e3ac45b39a655a77a7add68a4ae8b083c64 Mon Sep 17 00:00:00 2001 From: dak180 Date: Fri, 16 Apr 2010 04:03:05 +0000 Subject: [PATCH] When you know the data directory is messy, be sure to clean it up. git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10594 4a71c877-e1ca-e34f-864e-861f7616d084 --- macosx/Warzone.xcodeproj/project.pbxproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macosx/Warzone.xcodeproj/project.pbxproj b/macosx/Warzone.xcodeproj/project.pbxproj index 42c930dc3..3c51e72c2 100644 --- a/macosx/Warzone.xcodeproj/project.pbxproj +++ b/macosx/Warzone.xcodeproj/project.pbxproj @@ -3762,7 +3762,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "#Config\ndestdata=\"build/${CONFIGURATION}/Warzone.app/Contents/Resources/data\"\ndatadir=\"../data\"\nsvnrevtag=`svnversion -c \"${datadir}\"`\nmtag=`echo \"${svnrevtag}\" | sed -ne 's:\\(.*\\)M$:true:p'`\n\nif [ -d \"${destdata}\" ]; then\n testsvnrevtag=`svnversion -c \"${destdata}\"`\n if [[ \"${testsvnrevtag}\" = \"${svnrevtag}\" ]] && [[ ! \"${mtag}\" = \"true\" ]]; then\n echo \"Data directory is up to date\"\n exit 0\n else\n echo \"Data directory is out of date or has local modifications; recopying\"\n cp -af \"${datadir}/\" \"${destdata}/\"\n exit 0\n fi\nelse\n mkdir -p \"${destdata}\"\n cp -af \"${datadir}/\" \"${destdata}/\"\nfi\n\nexit 0"; + shellScript = "#Config\ndestdata=\"build/${CONFIGURATION}/Warzone.app/Contents/Resources/data\"\ndatadir=\"../data\"\nsvnrevtag=`svnversion -c \"${datadir}\"`\nmtag=`echo \"${svnrevtag}\" | sed -ne 's:\\(.*\\)M$:true:p'`\n\nif [ -d \"${destdata}\" ]; then\n testsvnrevtag=`svnversion -c \"${destdata}\"`\n if [[ \"${testsvnrevtag}\" = \"${svnrevtag}\" ]] && [[ ! \"${mtag}\" = \"true\" ]]; then\n echo \"Data directory is up to date\"\n exit 0\n else\n echo \"Data directory is out of date or has local modifications; recopying\"\n rm -rf \"${destdata}\"\n mkdir -p \"${destdata}\"\n cp -af \"${datadir}/\" \"${destdata}/\"\n exit 0\n fi\nelse\n mkdir -p \"${destdata}\"\n cp -af \"${datadir}/\" \"${destdata}/\"\nfi\n\nexit 0"; }; 02F5CC4F0D148FC30000A2D0 /* Create database.c */ = { isa = PBXShellScriptBuildPhase;