#!/bin/bash # This script copies the relevant headers from the mozilla tree to the llmozlib # development tree. # Note that the headers may be architecture-dependent, so they need to be copied # to the relevant architectural subdirectories of libraries. # NOTE: this assumes a mozilla tree that was built with build_mozilla/checkout_patch_build.sh export MOZ_OBJDIR="build_mozilla/objdir-mozilla-universal" # install libraries and headers in llmozlib/libraries/ export LIBRARIES_DEST="." # make sure the destination directories exist. If they don't, the user running the script probably hasn't set them up properly. if [ \( \! -d "$MOZ_OBJDIR" \) -o \( \! -d "$LIBRARIES_DEST" \) ] ; then echo "Either MOZ_OBJDIR or LIBRARIES_DEST are not set properly for your system. Please modify $0 to set them correctly." exit 1 fi # add --dry-run to just see what this will do (without actually doing it) RSYNC_OPTIONS="--recursive --checksum --verbose --progress --copy-unsafe-links" ############################# # copy universal shared libraries to debug and release directories for j in lib_release ; do mkdir -p "$LIBRARIES_DEST/libraries/universal-darwin/$j" rsync --include-from=- $RSYNC_OPTIONS \ "$MOZ_OBJDIR/ppc/dist/universal/xulrunner/XUL.framework/Versions/Current/" \ "$LIBRARIES_DEST/libraries/universal-darwin/$j" \ <