Skip to content

Commit

Permalink
Try to pickup the current revision from git first.
Browse files Browse the repository at this point in the history
  • Loading branch information
dak180 committed Oct 31, 2010
1 parent 91a9a84 commit e540ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macosx/Warzone.xcodeproj/project.pbxproj
Expand Up @@ -3589,7 +3589,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Config\nexport PATH=$PATH:/sw/bin:/opt/local/bin\ndestdata=\"build/${CONFIGURATION}/Warzone.app/Contents/Resources/data\"\ndatadir=\"../data\"\nrevckf=\"build/revck.tmp\"\ntsthg=\"../.hg\"\ntstgit=\"../.git\"\n\n# Check for hg or git\nif [ -d \"${tsthg}\" ]; then\n revck=`hg identify`\n mck=`hg status ${datadir}`\nelif [ -d \"${tstgit}\" ]; then\n revck=`git rev-parse HEAD`\n mck=`git status --porcelain ${datadir}`\nelse\n revck=\"false\"\nfi\n\n# Try to figure out if the data dir needs updating\nif [ -d \"${destdata}\" ]; then\n revtst=`cat ${revckf}`\n if [[ \"${revck}\" == \"false\" ]] || [[ -z \"${revck}\" ]];then\n echo \"Warning: State of the data directory cannot be determined; recopying\"\n rm -rf \"${destdata}\"\n mkdir -p \"${destdata}\"\n cp -pPRf \"${datadir}/\" \"${destdata}/\"\n elif [[ ! -z \"${mck}\" ]] || [[ ! \"${revck}\" = \"${revtst}\" ]];then\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 else\n echo \"Data directory is up to date\"\n exit 0\n fi\nelse\n mkdir -p \"${destdata}\"\n cp -pPRf \"${datadir}/\" \"${destdata}/\"\nfi\n\n# Write out revckf\necho \"${revck}\" > ${revckf}\n\nexit 0";
shellScript = "# Config\nexport PATH=$PATH:/sw/bin:/opt/local/bin\ndestdata=\"build/${CONFIGURATION}/Warzone.app/Contents/Resources/data\"\ndatadir=\"../data\"\nrevckf=\"build/revck.tmp\"\ntsthg=\"../.hg\"\ntstgit=\"../.git\"\n\n# Check for hg or git\nif [ -d \"${tstgit}\" ]; then\n revck=`git rev-parse HEAD`\n mck=`git status --porcelain ${datadir}`\nelif [ -d \"${tsthg}\" ]; then\n revck=`hg identify`\n mck=`hg status ${datadir}`\nelse\n revck=\"false\"\nfi\n\n# Try to figure out if the data dir needs updating\nif [ -d \"${destdata}\" ]; then\n revtst=`cat ${revckf}`\n if [[ \"${revck}\" == \"false\" ]] || [[ -z \"${revck}\" ]];then\n echo \"Warning: State of the data directory cannot be determined; recopying\"\n rm -rf \"${destdata}\"\n mkdir -p \"${destdata}\"\n cp -pPRf \"${datadir}/\" \"${destdata}/\"\n elif [[ ! -z \"${mck}\" ]] || [[ ! \"${revck}\" = \"${revtst}\" ]];then\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 else\n echo \"Data directory is up to date\"\n exit 0\n fi\nelse\n mkdir -p \"${destdata}\"\n cp -pPRf \"${datadir}/\" \"${destdata}/\"\nfi\n\n# Write out revckf\necho \"${revck}\" > ${revckf}\n\nexit 0";
};
02F5CC4F0D148FC30000A2D0 /* Create database.c */ = {
isa = PBXShellScriptBuildPhase;
Expand Down

0 comments on commit e540ca7

Please sign in to comment.