mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
9a94a93701
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@8 f6dd340e-d3f9-0310-b409-bdd246841980
30 lines
811 B
Bash
Executable file
30 lines
811 B
Bash
Executable file
#!/bin/bash
|
|
|
|
PROJECT=c++-annotations
|
|
|
|
VERSION=`grep DOCVERSION yo/version.yo | sed 's/SUBST(DOCVERSION)(\(.*\))/\1/'`
|
|
|
|
DISTRIBUTION=${PROJECT}-${VERSION} # define the distribution's dir name
|
|
|
|
cd ..
|
|
|
|
ln -s trunk ${DISTRIBUTION} # distribution's dir name
|
|
|
|
if [ "$#" != "0" ] # any arg? make debian .orig file
|
|
then
|
|
ls
|
|
# create the .orig source tar
|
|
tar czvf ${PROJECT}_${VERSION}.orig.tar.gz \
|
|
--exclude-from=${DISTRIBUTION}/excluded \
|
|
${DISTRIBUTION}/*
|
|
else
|
|
tar czvf ${PROJECT}_${VERSION}.tar.gz \
|
|
--exclude-from=${DISTRIBUTION}/excluded \
|
|
${DISTRIBUTION}/*
|
|
gpg -ba ${PROJECT}_${VERSION}.tar.gz
|
|
fi
|
|
|
|
rm ${DISTRIBUTION} # rm the link
|
|
|
|
|
|
|