5 echo "Usage: $0 <archive> <scripts> ..."
12 # The second argument is the shell script that initializes the variables:
14 # addBuildCompatibilityLibDir
19 # NOTE: rmAttrs and zip are only passed in when building zip
24 outputDir
=$tmpDir/archive
26 # this adds the build library dir to LD_LIBRARY_PATH
27 eval "$addBuildCompatibilityLibDir"
29 # map the shell commands
42 # clearDir <directory>
43 if [ $rmAttrs ] ; then
56 echo "Preparing contents of archive $archive ..."
57 while [ $# -gt 0 ]; do
62 # get an absolute path for the archive
64 cd $
(dirname $archive)
65 archive
=$
(pwd)/$
(basename $archive)
69 echo "Building archive $archive ..."
78 tar --format ustar
-czf $archive $contents
81 echo "Unhandled archive format in build_archive"