1#!/bin/bash 2 3# Execute this to package up fracplanet as a .tar.gz. 4# This is the script used to build the tarballs released on sourceforge 5 6VERSION=`./VERSION` 7 8DIR=${PWD##*/} 9 10cd .. 11 12PRUNE='-name moc -prune -o -name obj -prune -o -name pkg_* -prune' 13 14FILES_MISC=`ls ${DIR}/{README,BUILD.sh,LICENSE,TODO,NEWS,BUGS,VERSION,THANKS,doxygen.cfg,mktgz,mkdeb,fracplanet.css,fracplanet.htm,fracplanet.menu,htm_to_qml.xsl}` 15FILES_PRO=`find ${DIR} ${PRUNE} -o -name '*.pro' -print` 16FILES_MAN=`find ${DIR}/man ${PRUNE} -o -name '*.1' -print` 17FILES_H=`find ${DIR} ${PRUNE} -o -name '*.h' -print` 18FILES_C=`find ${DIR} ${PRUNE} -o -name '*.c' -print` 19FILES_CPP=`find ${DIR} ${PRUNE} -o -name '*.cpp' -print` 20 21FILES="$FILES_MISC $FILES_PRO $FILES_MAN $FILES_H $FILES_C $FILES_CPP" 22 23tar --transform "s:^${DIR}/:fracplanet-${VERSION}/:" -cz -f ${DIR}/fracplanet.tar.gz $FILES 24 25echo "***" 26echo "*** Suggestion:" 27echo "*** mv fracplanet.tar.gz fracplanet-$VERSION.tar.gz" 28echo "***" 29