Differences From Artifact [a40d90084e]:
- Executable file build/cackey_osx_build/build_osx.sh — part of check-in [39be32107d] at 2010-07-13 01:41:02 on branch trunk — Added support for copying libtool from build box and running autogen.sh (user: kvanals, size: 4895) [annotate] [blame] [check-ins using]
To Artifact [ba9acb7d77]:
- Executable file
build/cackey_osx_build/build_osx.sh
— part of check-in
[284fc537fc]
at
2010-07-22 07:45:00
on branch trunk
— Updated OSX CACKey build script to support more descriptive package names.
Updated PackageMaker Document XML files for OSX CACKey build to be better formatted. (user: kvanals, size: 5576) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
#!/bin/bash
# Shell Script to make Mac OS X Releases of CACKey
# Kenneth Van Alstyne
# kenneth.l.vanalstyne@usace.army.mil
# 20100712
# Usage function
usage() {
echo "Usage: build_osx.sh <target>"
echo Where target is one of:
echo " panther - (Builds 10.3 Library for PPCG3)"
echo " tiger - (Builds Universal 10.4 Library for PPCG3/i386)"
echo " leopard - (Builds Universal 10.5 Library for PPCG4/i386)"
echo " snowleopard - (Builds Universal 10.6 Library for i386/x86_64)"
echo " all - (Builds for all supported targets)"
echo " clean - (Cleans up)"
echo "Run from CACKey Build Root."
exit $?
}
# Clean up function
clean() {
rm -rf macbuild
make distclean
}
# Directory creation function
makedir() {
if [ ! -d macbuild ]; then
| > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
#!/bin/bash
# Shell Script to make Mac OS X Releases of CACKey
# Kenneth Van Alstyne
# kenneth.l.vanalstyne@usace.army.mil
# 20100712
CACKEY_VERSION=`cat configure.ac | grep AC_INIT | cut -d " " -f 2 | sed 's_)__'`
# Usage function
usage() {
echo "Usage: build_osx.sh <target>"
echo Where target is one of:
echo " panther - (Builds 10.3 Library for PPCG3)"
echo " tiger - (Builds Universal 10.4 Library for PPCG3/i386)"
echo " leopard - (Builds Universal 10.5 Library for PPCG4/i386)"
echo " snowleopard - (Builds Universal 10.6 Library for i386/x86_64)"
echo " all - (Builds for all supported targets)"
echo " clean - (Cleans up)"
echo "Run from CACKey Build Root."
exit $?
}
# Clean up function
clean() {
for PMDOC in build/cackey_osx_build/*_pmbuild.pmdoc/*.in; do
PMDOC="`echo "${PMDOC}" | sed 's_.in__g'`"
rm -f "${PMDOC}"
done
rm -f build/cackey_osx_build/cackey.dylib
rm -rf macbuild
make distclean
}
# Directory creation function
makedir() {
if [ ! -d macbuild ]; then
|
| ︙ | ︙ | |||
140 141 142 143 144 145 146 147 148 149 150 151 |
done
lipo -create ${DARCHLIST} -output macbuild/${OSX}/libcackey_g.dylib
rm macbuild/${OSX}/libcackey*.dylib.*
}
# Function to build Mac OS X Packages
pkgbuild() {
if [ ${OSX} == "Panther" ]; then
EXT=mpkg
else
EXT=pkg
fi
| > > > > > > | | | | > | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
done
lipo -create ${DARCHLIST} -output macbuild/${OSX}/libcackey_g.dylib
rm macbuild/${OSX}/libcackey*.dylib.*
}
# Function to build Mac OS X Packages
pkgbuild() {
rm -f build/cackey_osx_build/cackey.dylib
ln macbuild/${OSX}/libcackey.dylib build/cackey_osx_build/cackey.dylib
for PMDOC in build/cackey_osx_build/${OSX}_pmbuild.pmdoc/*.in; do
PMDOC="`echo "${PMDOC}" | sed 's_.in__g'`"
sed "s|@@BUILDROOTDIR@@|$(pwd)|g" ${PMDOC}.in > ${PMDOC}
done
if [ ${OSX} == "Panther" ]; then
EXT=mpkg
else
EXT=pkg
fi
/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker -d build/cackey_osx_build/${OSX}_pmbuild.pmdoc -o macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}
tar --create --directory macbuild/pkg/ --file macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}.tar CACKey_${CACKEY_VERSION}_${OSX}.${EXT}
gzip -9 macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}.tar
rm -rf macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}
rm -f build/cackey_osx_build/cackey.dylib
echo "${OSX} build complete"
}
# Take command line arguments and execute
case "$1" in
"")
usage
|
| ︙ | ︙ |