home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # File: tarup
- # Usage: tarup
- #
- # Builds tar archive of plplot files for distribution.
- # No binary or CVS files should be included.
-
- # Build archive from parent directory. It must also be unpacked from there.
-
- pldir="`basename $PWD`"
- tarfile=${pldir}.tar
- cd ..
-
- # Store files, leaving out contents of certain directories as well as all
- # CVS-related junk.
-
- echo "Creating ../${tarfile}..."
- tar cf $tarfile \
- `find $pldir \
- ! -path ${pldir}/tmp/\* \
- ! -path ${pldir}/lib/\* \
- ! -path ${pldir}/private/\* \
- ! -path \*CVS\* \
- ! -path \*~ \
- -type f`
-
- tar rf $tarfile ${pldir}/lib/*.fnt ${pldir}/lib/*.map \
- ${pldir}/tmp/.dummy ${pldir}/private/.dummy
-
- echo "Compressing..."
- gzip ${tarfile}
-
- echo "The resulting file is:"
- cd $pldir
- ls -l ../${tarfile}.gz
-