3 # script for pulling together a Linux app bundle.
5 # This will create a bundle for a single architecture.
6 # Execute this scirpt on both x86 and x86_64 and then use
7 # package to merge the 2 bundles into a final package with the
8 # installer. See "noderun" for a complete build script.
10 # where the GTK stack is installed
11 GTKSTACK_ROOT=$HOME/gtk/inst
12 # where the Ardour dependencies are installed
13 ARDOURSTACK_ROOT=$HOME/a3/inst
14 # the waf build tree to use when copying built/generated files
15 BUILD_ROOT=../../build
17 . ../define_versions.sh
19 # where harvid and xjadeo binaries are cached
20 if test -z "$CACHEDIR" -o ! -d "$CACHEDIR"; then
38 NOSTRIP="libsuil|libserd|libsord|liblilv|libsratom|liblrdf|libardour|libpbd|libevoral"
41 if [ $# -eq 0 ] ; then
43 echo "ERROR - Please specify build type"
50 while [ $# -gt 0 ] ; do
55 # top level build targets
80 --test) WITH_LADSPA=; STRIP= ; shift ;;
83 # specific build flags
86 --nojack) INTERNAL_JACK= ; shift ;;
87 --noladspa) WITH_LADSPA= ; shift ;;
88 --strip) STRIP=$2 ; shift ; shift ;;
89 --sysdeps) PRINT_SYSDEPS=1; shift ;;
90 --nls) WITH_NLS=1 ; shift ;;
91 --harvid) WITH_HARVID=1 ; shift ;;
92 --gcc5abi) GCC5ABI=true ; shift ;;
95 #catch all for unknown arguments
97 echo "!!! ERROR !!! - Unknown argument $1"
104 if test x$STRIP != xall -a x$STRIP != xnone -a x$STRIP != xsome ; then
105 echo "Unknown strip option \"$STRIP\""
106 echo "Legal values are: all, none, some"
110 . ../define_versions.sh
112 echo "Version is $release_version"
113 if [ "x$commit" != "x" ] ; then
114 info_string="$release_version ($commit) built on `hostname` by `whoami` on `date`"
116 info_string="$release_version built on `hostname` by `whoami` on `date`"
118 echo "Info string is $info_string"
120 # Figure out our CPU type
122 i[3456789]86|x86|i86pc)
123 echo "Architecture is x86"
128 MULTIARCH='i386-linux-gnu'
131 echo "Architecture is x86_64"
136 MULTIARCH='x86_64-linux-gnu'
140 echo "ERROR - Unknown architecture `uname -m`"
146 if [ x$DEBUG = xT ]; then
148 if [ x$STRIP = xall ] ; then
149 echo "A debug build with --strip all makes no sense - STRIP reset to \"some\""
154 # setup directory structure
156 if [ -z "${BUILDTYPE}" ]; then
157 APPDIR=${APPNAME}_${ARCH}-${release_version}
158 APP_VER_NAME=${APPNAME}-${release_version}
160 APPDIR=${APPNAME}_${ARCH}-${release_version}-${BUILDTYPE}
161 APP_VER_NAME=${APPNAME}-${release_version}-${BUILDTYPE}
170 Plugins=$APPLIB/plugins
171 Surfaces=$APPLIB/surfaces
172 Panners=$APPLIB/panners
173 Backends=$APPLIB/backends
175 Templates=$Shared/templates
176 ExportFormats=$Shared/export
177 Locale=$Shared/locale
178 MidiMaps=$Shared/midi_maps
179 PatchFiles=$Shared/patchfiles
180 LuaScripts=$Shared/scripts
181 MackieControl=$Shared/mcp
183 if [ x$PRINT_SYSDEPS != x ] ; then
185 # print system dependencies
188 for file in $APPBIN/* $Libraries/* $Plugins/*.so ; do
189 if ! file $file | grep -qs Mach-O ; then
192 otool -L $file | awk '{print $1}' | egrep -v "(^@executable_path|^Ardour[0-9][.0-9]*.app)"
197 echo "Removing old $APPDIR tree ..."
200 echo "Building new app directory structure ..."
202 # only bother to make the longest paths
214 mkdir -p $MackieControl
215 mkdir -p $ExportFormats
221 # maybe set variables
222 ENVIRONMENT=environment
226 if test x$MIXBUS != x ; then
227 echo export ARDOUR_MIXBUS=true >> $ENVIRONMENT
229 # current default for MIXBUS version is US keyboard layout without a keypad
231 echo export ARDOUR_KEYBOARD_LAYOUT=us-nokeypad >> $ENVIRONMENT
232 echo export ARDOUR_UI_CONF=ardour3_ui.conf >> $ENVIRONMENT
236 # if we're not going to bundle JACK, make sure we can find
237 # jack in the places where it might be
240 echo export 'PATH=/usr/local/bin:/opt/bin:$PATH' >> $ENVIRONMENT
242 # create startup helper script
243 if test -d $BUILD_ROOT/vst; then
246 echo export INSTALL_DIR >> $ENVIRONMENT
251 sed -e "/^%ENV%/r $ENVIRONMENT" -e '/^%ENV%/d' -e 's/%VER%/'"${release_version}"'/;s/%EXENAME%/'"${EXENAME}"'/;s/%WINE%/'"$WINEEXE"'/' < ardour.sh.in > $APPBIN/${EXENAME}${major_version}
252 rm $ENVIRONMENT && chmod 775 $APPBIN/${EXENAME}${major_version}
254 echo "Copying ardour executable ...."
255 if test -d $BUILD_ROOT/vst; then
256 #cp -v $BUILD_ROOT/gtk2_ardour/libgtk2_ardour.so $APPLIB/
257 cp -v $BUILD_ROOT/gtk2_ardour/ardour-${release_version}-vst.exe.so $APPBIN/${EXENAME}-${release_version}
259 cp -v $BUILD_ROOT/gtk2_ardour/ardour-${release_version}* $APPBIN/${EXENAME}-${release_version}
262 if test x$STRIP = xall ; then
263 strip -s $APPBIN/${EXENAME}-${release_version}
267 # note that at present(feb 2011), the .mo files end up in the source tree which is
268 # not really as it should be.
269 if test x$WITH_NLS != x ; then
270 echo "NLS support ..."
271 echo "I hope you remembered to run scons msgupdate!"
274 for pkg in gtk2_ardour libs/ardour libs/gtkmm2ext ; do
275 files=`find ../../$pkg -name "*.mo"`
278 # the package name is appended with a number so that
279 # it can be parallel installed during a regular install
280 # with older (and newer) versions. it is just the major
281 # number of the release (i.e. leading digits)
284 vsuffix=`echo $release_version | sed 's/^\([0-9][0-9]*\).*/\1/'`
286 if [ -z "$files" ]; then
288 echo "!!!! WARNING !!!! - Did not find any .mo files in ../../$pkg"
295 lang=`basename $file | sed 's/\.mo//'`
296 mkdir -p $Locale/$lang/LC_MESSAGES
297 cp $file $Locale/$lang/LC_MESSAGES/`basename $pkg`$vsuffix.mo
298 echo copy $file to $Locale/$lang/LC_MESSAGES/`basename $pkg`$vsuffix.mo
299 if echo $LINGUAS | grep $lang >/dev/null 2>&1 ; then
302 LINGUAS="$LINGUAS $lang"
307 GTK_MESSAGES="atk10.mo gdk-pixbuf.mo gtk20-properties.mo gtk20.mo atk10.mo glib20.mo"
308 LOCALEROOT=$GTKSTACK_ROOT/share/locale
310 for l in $LINGUAS ; do
311 echo "Copying GTK i18n files for $l..."
312 for MO in $GTK_MESSAGES ; do
313 if [ -f $LOCALEROOT/$l/LC_MESSAGES/$MO ] ; then
314 cp $LOCALEROOT/$l/LC_MESSAGES/$MO $Locale/$l/LC_MESSAGES
316 # try with just the language spec
317 just_lang=`echo $l | sed 's/_[A-Z][A-Z]$//'`
318 if [ -f $LOCALEROOT/$just_lang/LC_MESSAGES/$MO ] ; then
319 cp $LOCALEROOT/$just_lang/LC_MESSAGES/$MO $Locale/$just_lang/LC_MESSAGES
325 echo "Skipping NLS support"
329 # Copy stuff that may be dynamically loaded
332 cp -R $GTKSTACK_ROOT/etc/* $Etc
334 # We rely on clearlooks, so include a version from our own build tree
335 # this one is special - we will set GTK_PATH to $Libraries/gtkengines
337 GTK_ENGINE_DIR=$Libraries/gtkengines/engines
338 mkdir -p $GTK_ENGINE_DIR
340 echo "Copying GTK engines ..."
341 cp $BUILD_ROOT/libs/clearlooks-newer/libclearlooks.so $Libraries
342 (cd $GTK_ENGINE_DIR && ln -s ../../libclearlooks.so . )
344 cp $GTKSTACK_ROOT/lib/gtk-2.0/2.10.0/engines/libpixmap.so $Libraries
345 (cd $GTK_ENGINE_DIR && ln -s ../../libpixmap.so . )
348 if test x$WITH_LADSPA != x ; then
349 if test x$MIXBUS != x ; then
350 plugdir=mixbus_ladspa
354 echo "Copying `ls $plugdir | wc -l` plugins ..."
355 if [ -d $plugdir ] ; then
357 cp -r $plugdir/* $Plugins
362 cp $BUILD_ROOT/libs/surfaces/*/libardour_*.so* $Surfaces
363 cp $BUILD_ROOT/libs/surfaces/control_protocol/libardourcp.so* $Libraries
366 # got to be careful with names here
367 for x in $BUILD_ROOT/../midi_maps/*.map ; do
372 # got to be careful with names here
373 for x in $BUILD_ROOT/../patchfiles/*.midnam ; do
378 # got to be careful with names here
379 for x in $BUILD_ROOT/../scripts/*.lua ; do
384 # got to be careful with names here
385 for x in $BUILD_ROOT/../mcp/*.device $BUILD_ROOT/../mcp/*.profile ; do
386 cp "$x" $MackieControl
390 #for f in $BUILD_ROOT/../templates/* ; do
391 # if [ -d "$f" ] ; then
392 # echo Template: $f ; cp -r "$f" $Templates ;
397 # got to be careful with names here
398 for x in $BUILD_ROOT/../export/*.preset $BUILD_ROOT/../export/*.format ; do
399 cp "$x" $ExportFormats
403 cp $BUILD_ROOT/libs/panners/*/lib*.so* $Panners
406 for backend in jack alsa dummy wavesaudio ; do
407 cp $BUILD_ROOT/libs/backends/$backend/lib*.so* $Backends
410 # VAMP plugins that we use
411 cp $BUILD_ROOT/libs/vamp-plugins/libardourvampplugins.so* $Libraries
413 # Suil modules (new dir 'build-stack')
414 if test -d $GTKSTACK_ROOT/lib/suil-0/ ; then
415 cp $GTKSTACK_ROOT/lib/suil-0/lib* $Libraries
418 # Suil modules (old dir 'build-ardour-stack')
419 if test -d $ARDOURSTACK_ROOT/lib/suil-0/ ; then
420 cp $ARDOURSTACK_ROOT/lib/suil-0/lib* $Libraries
423 # VST scanner app (both LXVST as well as WIN-VST, 2in1)
424 # (if build with wine: ardour-vst-scanner is a wrapper
425 # script for ardour-vst-scanner.exe.so, if VST is disabled
426 # neither binary nor script exists)
427 if test -d $BUILD_ROOT/libs/fst ; then
428 cp $BUILD_ROOT/libs/fst/ardour-vst-scanner* $APPLIB || true
429 if test x$STRIP = xall ; then
430 strip -s $APPLIB/ardour-vst-scanner*
435 if test -f $BUILD_ROOT/libs/vfork/ardour-exec-wrapper ; then
436 cp $BUILD_ROOT/libs/vfork/ardour-exec-wrapper $APPLIB
437 if test x$STRIP = xall ; then
438 strip -s $APPLIB/ardour-exec-wrapper
442 # ALSA device reservation tool (if available)
443 if test -f $BUILD_ROOT/libs/ardouralsautil/ardour-request-device; then
444 cp $BUILD_ROOT/libs/ardouralsautil/ardour-request-device $APPLIB/ || true
445 if test x$STRIP = xall ; then
446 strip -s $APPLIB/ardour-request-device
450 OURLIBDIR=$BUILD_ROOT/libs
451 OURLIBS=$OURLIBDIR/vamp-sdk:$OURLIBDIR/surfaces/control_protocol:$OURLIBDIR/ardour:$OURLIBDIR/midi++2:$OURLIBDIR/pbd:$OURLIBDIR/rubberband:$OURLIBDIR/soundtouch:$OURLIBDIR/gtkmm2ext:$OURLIBDIR/sigc++2:$OURLIBDIR/glibmm2:$OURLIBDIR/gtkmm2/atk:$OURLIBDIR/gtkmm2/pango:$OURLIBDIR/gtkmm2/gdk:$OURLIBDIR/gtkmm2/gtk:$OURLIBDIR/canvas:$OURLIBDIR/libsndfile:$OURLIBDIR/evoral:$OURLIBDIR/evoral/src/libsmf:$OURLIBDIR/audiographer:$OURLIBDIR/timecode:$OURLIBDIR/taglib:$OURLIBDIR/libltc:$OURLIBDIR/qm-dsp:$OURLIBDIR/ardouralsautil:$OURLIBDIR/ptformat:$BUILD_ROOT/gtk2_ardour
453 echo $OURLIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
460 filelist=`find $APPLIB/ -type f`
461 filelist="$APPBIN/${EXENAME}-${release_version} $filelist"
463 for file in $filelist ; do
464 if ! file $file | grep -qs ELF ; then
468 # speed this up a bit by not checking things multiple times.
469 for i in "${depCheckedList[@]}"; do
470 if [ $i == $file ]; then
474 depCheckedList[$checkIdx]=$file
475 checkIdx=$(($checkIdx + 1))
477 # ignore suil/qt wrappers - the plugin will pull in QT4.
478 if echo $file | grep -qs 'libsuil_.*qt4' ; then continue; fi
480 # do not include libjack, nor libwine
481 deps=`LD_LIBRARY_PATH=$OURLIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ldd $file | grep -v libwine.so | awk '{print $3}'`
484 for dep in $deps ; do
485 if test "not" = ${dep}; then
487 echo "!!! ERROR !!! - Missing dependant library for $file."
488 echo "Searched: " $OURLIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
490 (LD_LIBRARY_PATH=$OURLIBS${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} ldd $file)
492 echo "!!! ERROR !!! - See Above"
496 # don't use anything mapped at a specific address
497 if echo $dep | grep -qs '0x' ; then continue; fi
499 if echo $dep | grep -qs "^/lib/" ; then continue; fi
501 if echo $dep | grep -qs libjack ; then continue; fi
503 if echo $dep | grep -qs libasound ; then continue; fi
504 # don't include any X Window libraries
505 if echo $dep | grep -qs libX\. ; then continue; fi
506 if echo $dep | grep -qs libxcb ; then continue; fi
507 if echo $dep | grep -qs libICE\. ; then continue; fi
508 if echo $dep | grep -qs libSM\. ; then continue; fi
510 if echo $dep | grep -qs 'libc\.' ; then continue; fi
511 # don't include libstdc++
512 if echo $dep | grep -qs libstdc++ ; then continue; fi
513 # don't include libdbus
514 if echo $dep | grep -qs libdbus ; then continue; fi
517 if ! test -f $Libraries/$base; then
518 parent=$(basename ${file})
519 if echo $dep | grep -sq '^libs' ; then
520 echo "Copying dependant lib $BUILD_ROOT/$dep (required by ${parent})"
521 cp $BUILD_ROOT/$dep $Libraries
523 echo "Copying dependant lib $dep (required by ${parent})"
527 # reset RPATH so that the runtime linker never looks
528 # in places we don't want it to
530 chrpath -r foo $Libraries/`basename $dep`
531 if echo $dep | grep -sq '^/' ; then
532 # absolute path, candidate for stripping
533 deplibs="$deplibs $base"
539 if test x$missing = xfalse ; then
540 # everything has been found
547 if test x$STRIP = xall ; then
548 echo Stripping all libraries
549 # Must be writable so that we can strip
550 find $APPLIB/ -name "*.so*" -print0 | xargs -0 chmod u+w
552 find $APPLIB/ -name "*.so*" -print0 | xargs -0 strip -s
553 elif test x$STRIP = xsome ; then
554 echo Stripping dependent libraries
555 for l in $deplibs ; do
556 if echo "$l" | grep -qE "$NOSTRIP"; then
563 find $APPLIB/ -name "*.so*" -print0 | xargs -0 chmod a+rx
565 echo "Copying other stuff to $APPDIR ..."
567 # these are all generated by waf
568 cp $BUILD_ROOT/gtk2_ardour/mnemonic-us.bindings $Etc
569 cp $BUILD_ROOT/gtk2_ardour/ardour.menus $Etc
570 cp $BUILD_ROOT/gtk2_ardour/clearlooks.rc $Etc
571 cp $BUILD_ROOT/gtk2_ardour/default_ui_config $Etc
573 # Copied directly from source tree
575 cp ../../system_config $Etc/system_config
576 cp ../../gtk2_ardour/dark.colors $Etc
577 cp ../../instant.xml $Shared/instant.xml
578 cp ../../gtk2_ardour/step_editing.bindings $Etc
579 cp ../../gtk2_ardour/mixer.bindings $Etc
580 cp -r ../../gtk2_ardour/icons $Shared
581 cp -r ../../gtk2_ardour/pixmaps $Shared
582 cp -r ../../gtk2_ardour/splash.png $Shared
583 cp -r ../../gtk2_ardour/small-splash.png $Shared
584 cp -r ../../gtk2_ardour/ArdourMono.ttf $Shared
587 # put sooper sekrit ingredients here and they will be copied
590 if [ -d specialSauce ] ; then
591 cp -r specialSauce $Etc
594 # install bundled LV2s to <app>/lib/LV2/
595 cp -R $BUILD_ROOT/libs/LV2 $APPLIB/
597 # lv2 core, classifications etc - TODO check if we need the complete LV2 ontology
598 if test -d $ARDOURSTACK_ROOT/lib/lv2/lv2core.lv2 ; then
599 mkdir -p $APPLIB/LV2/lv2core.lv2
600 cp -R $ARDOURSTACK_ROOT/lib/lv2/lv2core.lv2/*.ttl $APPLIB/LV2/lv2core.lv2/
601 elif test -d $GTKSTACK_ROOT/lib/lv2/lv2core.lv2 ; then
602 mkdir -p $APPLIB/LV2/lv2core.lv2
603 cp -R $GTKSTACK_ROOT/lib/lv2/lv2core.lv2/*.ttl $APPLIB/LV2/lv2core.lv2/
606 # go through and recursively remove any .svn dirs in the bundle
607 for svndir in `find $APPDIR -name .svn -type d`; do
612 ################################################################################
613 ### Mixbus plugins, etc
614 if test x$WITH_HARRISON_LV2 != x ; then
615 echo "Adding Harrison LV2s"
618 curl -s -S --fail -# \
619 -z "${CACHEDIR}/harrison_lv2s.${HARCH}.zip" \
620 -o "${CACHEDIR}/harrison_lv2s.${HARCH}.zip" \
621 "http://www.harrisonconsoles.com/mixbus/mb3/beta/harrison-dsp/harrison_lv2s.${HARCH}.zip"
622 unzip -q -d "$APPLIB/LV2/" "${CACHEDIR}/harrison_lv2s.${HARCH}.zip"
625 if test -n "$MIXBUS"; then
626 echo "Adding Mixbus Channelstrip"
628 mkdir -p $APPLIB/ladspa/strip/
629 curl -s -S --fail -# \
630 -z "${CACHEDIR}/harrison_channelstrip.${HARCH}.so" \
631 -o "${CACHEDIR}/harrison_channelstrip.${HARCH}.so" \
632 "http://www.harrisonconsoles.com/mixbus/mb3/beta/harrison-dsp/harrison_channelstrip.${HARCH}.so"
634 cp "${CACHEDIR}/harrison_channelstrip.${HARCH}.so" \
635 $APPLIB/ladspa/strip/harrison_channelstrip.so
636 chmod +x $APPLIB/ladspa/strip/harrison_channelstrip.so
639 if test x$WITH_X42_LV2 != x ; then
640 METERS_VERSION=$(curl -s -S http://x42-plugins.com/x42/linux/x42-meters.latest.txt)
641 rsync -a -q --partial \
642 rsync://x42-plugins.com/x42/linux/x42-meters-lv2-linux-${WARCH}-${METERS_VERSION}.zip \
643 "${CACHEDIR}/x42-meters-lv2-linux-${WARCH}-${METERS_VERSION}.zip"
644 unzip -q -d "$APPLIB/LV2/" "${CACHEDIR}/x42-meters-lv2-linux-${WARCH}-${METERS_VERSION}.zip"
646 SETBFREE_VERSION=$(curl -s -S http://x42-plugins.com/x42/linux/setBfree.latest.txt)
647 rsync -a -q --partial \
648 rsync://x42-plugins.com/x42/linux/setBfree-lv2-linux-${WARCH}-${SETBFREE_VERSION}.zip \
649 "${CACHEDIR}/setBfree-lv2-linux-${WARCH}-${SETBFREE_VERSION}.zip"
650 unzip -q -d "$APPLIB/LV2/" "${CACHEDIR}/setBfree-lv2-linux-${WARCH}-${SETBFREE_VERSION}.zip"
652 MIDIFILTER_VERSION=$(curl -s -S http://x42-plugins.com/x42/linux/x42-midifilter.latest.txt)
653 rsync -a -q --partial \
654 rsync://x42-plugins.com/x42/linux/x42-midifilter-lv2-linux-${WARCH}-${MIDIFILTER_VERSION}.zip \
655 "${CACHEDIR}/x42-midifilter-lv2-linux-${WARCH}-${MIDIFILTER_VERSION}.zip"
656 unzip -q -d "$APPLIB/LV2/" "${CACHEDIR}/x42-midifilter-lv2-linux-${WARCH}-${MIDIFILTER_VERSION}.zip"
659 ################################################################################
662 if test x$WITH_HARVID != x ; then
664 HARVID_VERSION=$(curl -s -S http://ardour.org/files/video-tools/harvid_version.txt)
665 XJADEO_VERSION=$(curl -s -S http://ardour.org/files/video-tools/xjadeo_version.txt)
668 rsync://ardour.org/video-tools/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz \
669 "$CACHEDIR/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz"
672 rsync://ardour.org/video-tools/xjadeo-${MULTIARCH}-${XJADEO_VERSION}.tgz \
673 "$CACHEDIR/xjadeo-${MULTIARCH}-${XJADEO_VERSION}.tgz"
676 --exclude=README --exclude=harvid.1 --strip-components=1 \
677 -f "$CACHEDIR/harvid-${MULTIARCH}-${HARVID_VERSION}.tgz" || exit 1
680 --exclude=README --exclude=xjadeo.1 --strip-components=1 \
681 -f "$CACHEDIR/xjadeo-${MULTIARCH}-${XJADEO_VERSION}.tgz" || exit 1
687 # Add the uninstaller
689 sed -e "s/%REPLACE_PGM%/${APPNAME}/" -e "s/%REPLACE_VENDOR%/${VENDOR}/" -e "s/%REPLACE_MAJOR_VERSION%/${major_version}/" -e "s/%REPLACE_VERSION%/${release_version}/" -e "s/%REPLACE_TYPE%/${BUILDTYPE}/" < uninstall.sh.in > $APPBIN/${APP_VER_NAME}.uninstall.sh
690 chmod a+x $APPBIN/${APP_VER_NAME}.uninstall.sh
693 # Add the stage2.run script
695 sed -e "s/%REPLACE_MAJOR_VERSION%/${major_version}/;s/%REPLACE_PGM%/${APPNAME}/;s/%REPLACE_VENDOR%/${VENDOR}/;s/%REPLACE_EXE%/${EXENAME}/;s/%REPLACE_GCC5%/${GCC5ABI}/;s/%REPLACE_WINE%/${USEWINE}/" < stage2.run.in > stage2.run
700 if [ -e $BUILD_ROOT/tools/sanity_check/sanityCheck ]; then
701 cp $BUILD_ROOT/tools/sanity_check/sanityCheck $APPBIN
703 echo "!!!ERROR !!! sanityCheck program is missing. packager will exit without being complete"
707 echo "Building tarball ..."
709 rm -f $APPDIR.tar.bz2
710 tar -cjf $APPDIR.tar.bz2 $APPDIR
712 echo "Calculating bundle size"
713 du -sb $APPDIR/ | awk '{print $1}' > $APPDIR.size
715 ( cd $APPDIR ; find . ) > file_list.txt