Added simple check for cheaters :-°

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1188 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
ceylo 2009-07-22 23:59:57 +00:00
parent d79ddb0fe1
commit 2a5f018062

View File

@ -70,6 +70,13 @@ print_usage()
# Checks that the user computer can run this script # Checks that the user computer can run this script
check_config() check_config()
{ {
os=`uname -s`
if [ $os != "Darwin" ]
then
echo "You're not running Mac OS X !"
exit 1
fi
if ! test -f "/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp" if ! test -f "/Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp"
then then
echo "Missing tool pbxcp needed by this script (should be located at /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp). Make sure Apple Developer Tools are correctly installed." echo "Missing tool pbxcp needed by this script (should be located at /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp). Make sure Apple Developer Tools are correctly installed."