5 # This will collect up the x86 and x86_64 bundles created by build
6 # and package them together with an installer script.
11 if [ $# -eq 0 ] ; then
13 echo "ERROR - Please specify build type"
20 while [ $# -gt 0 ] ; do
25 # top level build targets
38 --nostrip) STRIP= ; shift ;;
41 #catch all for unknown arguments
43 echo "!!! ERROR !!! - Unknown argument $1"
50 release_version=`grep -m 1 '^VERSION' ../../wscript | awk '{print $3}' | sed "s/'//g"`
51 svn_version=`grep -m 1 'svn_revision =' ../../libs/ardour/svn_revision.cc | cut -d"'" -f 2`
53 # Figure out the Build Type
54 if grep -q "DEBUG = True" ../../build/c4che/default.cache.py; then
60 if [ x$DEBUG != x ]; then
61 if [ x$STRIP != x ]; then
69 if [ -z ${BUILDTYPE} ]; then
70 X86_BUILD="${APPNAME}_x86-${release_version}_${svn_version}.tar.bz2"
71 X86_64_BUILD="${APPNAME}_x86_64-${release_version}_${svn_version}.tar.bz2"
72 PACKAGE="${APPNAME}-${release_version}_${svn_version}"
74 X86_BUILD="${APPNAME}_x86-${release_version}_${svn_version}-${BUILDTYPE}.tar.bz2"
75 X86_64_BUILD="${APPNAME}_x86_64-${release_version}_${svn_version}-${BUILDTYPE}.tar.bz2"
76 PACKAGE="${APPNAME}-${release_version}_${svn_version}-${BUILDTYPE}"
80 if [ ! -e ${X86_BUILD} ]; then
82 echo "!!! ERROR !!! - Can't locate x86 build file ${X86_BUILD}"
87 if [ ! -e ${X86_64_BUILD} ]; then
89 echo "!!! ERROR !!! - Can't locate x86_64 build file ${X86_64_BUILD}"
94 echo "Cleaning up any old package files for this build"
95 #Get rid of any old packages of this same name.
96 rm -f ${PACKAGE}.tar.bz2
100 echo "Creating new package dir..."
102 mv ${X86_BUILD} ${PACKAGE}
103 mv ${X86_64_BUILD} ${PACKAGE}
104 cp install.sh ${PACKAGE}
105 cp stage2.run ${PACKAGE}/.stage2.run
108 echo "Creating tarball..."
109 tar -czf ${PACKAGE}.tar.gz ${PACKAGE}