Debian Codegraph @

mktgz

raw
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
6 VERSION=`./VERSION`
7
8 DIR=${PWD##*/}
9
10 cd ..
11
12 PRUNE='-name moc -prune -o -name obj -prune -o -name pkg_* -prune'
13
14 FILES_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}`
15 FILES_PRO=`find ${DIR} ${PRUNE} -o -name '*.pro' -print`
16 FILES_MAN=`find ${DIR}/man ${PRUNE} -o -name '*.1' -print`
17 FILES_H=`find ${DIR} ${PRUNE} -o -name '*.h' -print`
18 FILES_C=`find ${DIR} ${PRUNE} -o -name '*.c' -print`
19 FILES_CPP=`find ${DIR} ${PRUNE} -o -name '*.cpp' -print`
20
21 FILES="$FILES_MISC $FILES_PRO $FILES_MAN $FILES_H $FILES_C $FILES_CPP"
22
23 tar --transform "s:^${DIR}/:fracplanet-${VERSION}/:" -cz -f ${DIR}/fracplanet.tar.gz $FILES
24
25 echo "***"
26 echo "*** Suggestion:"
27 echo "*** mv fracplanet.tar.gz fracplanet-$VERSION.tar.gz"
28 echo "***"