Make the copy data script work with 10.5.
git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/qt-trunk@10892 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
8cb4ea561b
commit
7250a95c6b
|
@ -3533,7 +3533,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 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";
|
||||
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 -pPRf \"${datadir}/\" \"${destdata}/\"\n exit 0\n fi\nelse\n mkdir -p \"${destdata}\"\n cp -pPRf \"${datadir}/\" \"${destdata}/\"\nfi\n\nexit 0";
|
||||
};
|
||||
02F5CC4F0D148FC30000A2D0 /* Create database.c */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
|
|
Loading…
Reference in New Issue