Run mkmanifest.sh in Xcode builds
Also: * Moved it into tools/ * Changed \ts to literal tabs
This commit is contained in:
parent
721385aeb6
commit
6df270e3b1
@ -21,7 +21,7 @@ endif
|
||||
SRC_BIN = $(OBJC_PROGRAM_NAME)$(OS_EXT)
|
||||
DEST_BIN = $(OBJC_PROGRAM_NAME)$(EXT)$(OS_EXT)
|
||||
|
||||
MKMANIFEST=./mkmanifest.sh
|
||||
MKMANIFEST=tools/mkmanifest.sh
|
||||
|
||||
PROGDIR=$(OBJC_PROGRAM_NAME).app
|
||||
|
||||
|
@ -3410,6 +3410,7 @@
|
||||
0865424C06B8447D000CA0AB /* Resources */,
|
||||
1A5BF29C0916D49800BF238F /* Copy MDImporter */,
|
||||
1A2CC5F118293E380060285F /* Copy Game Resources */,
|
||||
1A6D58B6182D5F3600BFB44D /* Generate Manifest */,
|
||||
1AA2E7471191E4B400DFBA23 /* Copy Schemata */,
|
||||
1AE8837812EF91880075814F /* Copy Frameworks */,
|
||||
);
|
||||
@ -3613,6 +3614,20 @@
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"$SRCROOT/tools/resource-management/copy-game-resources\" \"$SRCROOT/Resources\" \"$GAME_RESOURCES_DIR\"\n";
|
||||
};
|
||||
1A6D58B6182D5F3600BFB44D /* Generate Manifest */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "Generate Manifest";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "tools/mkmanifest.sh > \"$GAME_RESOURCES_DIR/manifest.plist\"";
|
||||
};
|
||||
1A7E3A06180AC8D400576095 /* Conditionally copy Debug Bundle */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
|
@ -1,27 +0,0 @@
|
||||
#! /bin/sh
|
||||
|
||||
OOLITE_VERSION_FILE="src/Cocoa/oolite-version.xcconfig"
|
||||
|
||||
|
||||
if [ $# -ge 1 ]; then
|
||||
cd $1
|
||||
if [ $? ]; then
|
||||
exit $?
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Extract definition of $OOLITE_VERSION from the xcconfig
|
||||
. $OOLITE_VERSION_FILE
|
||||
|
||||
echo "{"
|
||||
echo "\ttitle = \"Oolite core\";"
|
||||
echo "\tidentifier = \"org.oolite.oolite\";"
|
||||
echo "\t"
|
||||
echo "\tversion = \"$OOLITE_VERSION\";"
|
||||
echo "\trequired_oolite_version = \"$OOLITE_VERSION\";"
|
||||
echo "\t"
|
||||
echo "\tlicense = \"GPL 2+ / CC-BY-NC-SA 3.0 - see LICENSE.TXT for details\";"
|
||||
echo "\tauthor = \"Giles Williams, Jens Ayton and contributors\";"
|
||||
echo "\tinformation_url = \"http://www.oolite.org/\";"
|
||||
echo "}"
|
27
tools/mkmanifest.sh
Executable file
27
tools/mkmanifest.sh
Executable file
@ -0,0 +1,27 @@
|
||||
#! /bin/sh
|
||||
|
||||
OOLITE_VERSION_FILE="src/Cocoa/oolite-version.xcconfig"
|
||||
|
||||
|
||||
if [ $# -ge 1 ]; then
|
||||
cd $1
|
||||
if [ $? ]; then
|
||||
exit $?
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
# Extract definition of $OOLITE_VERSION from the xcconfig
|
||||
. $OOLITE_VERSION_FILE
|
||||
|
||||
echo "{"
|
||||
echo " title = \"Oolite core\";"
|
||||
echo " identifier = \"org.oolite.oolite\";"
|
||||
echo " "
|
||||
echo " version = \"$OOLITE_VERSION\";"
|
||||
echo " required_oolite_version = \"$OOLITE_VERSION\";"
|
||||
echo " "
|
||||
echo " license = \"GPL 2+ / CC-BY-NC-SA 3.0 - see LICENSE.TXT for details\";"
|
||||
echo " author = \"Giles Williams, Jens Ayton and contributors\";"
|
||||
echo " information_url = \"http://www.oolite.org/\";"
|
||||
echo "}"
|
Loading…
x
Reference in New Issue
Block a user