mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-28 16:20:12 +01:00
Cleanup Mac build and subdirectory
This commit is contained in:
32
mac/scripts/create_info_header.sh
Executable file
32
mac/scripts/create_info_header.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
#
|
||||
# Here we create empty xcconfig files if they do not exist. Otherwise,
|
||||
# the build will fail.
|
||||
#
|
||||
configs='Debug Release'
|
||||
for config in $configs
|
||||
do
|
||||
if [ ! -f $TOPLEVEL/mac/$config.xcconfig ]
|
||||
then
|
||||
touch $TOPLEVEL/mac/$config.xcconfig
|
||||
fi
|
||||
done
|
||||
|
||||
#
|
||||
# Generate the header file for preprocessing the Info.plist
|
||||
#
|
||||
# It's also used for create the distribution files
|
||||
#
|
||||
cd ${TOPLEVEL}
|
||||
eval $(gcc -E -dM src/Audacity.h | awk '/#define *AUDACITY_(VERSION|RELEASE|REVISION|MODLEVEL) /{print $2 "=" $3}')
|
||||
cat >mac/build/Info.plist.h <<EOF
|
||||
#define AUDACITY_EXECUTABLE Audacity
|
||||
#define AUDACITY_VERSION ${AUDACITY_VERSION}
|
||||
#define AUDACITY_RELEASE ${AUDACITY_RELEASE}
|
||||
#define AUDACITY_REVISION ${AUDACITY_REVISION}
|
||||
#define AUDACITY_DIST_VERSION ${AUDACITY_VERSION}.${AUDACITY_RELEASE}.${AUDACITY_REVISION}
|
||||
#define AUDACITY_INFO_VERSION ${AUDACITY_VERSION}.${AUDACITY_RELEASE}.${AUDACITY_REVISION}.${AUDACITY_MODLEVEL}
|
||||
EOF
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user