mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
11801a8f6a
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@45 f6dd340e-d3f9-0310-b409-bdd246841980
31 lines
856 B
Bash
Executable file
31 lines
856 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 \
|
|
${HOME}/debian/annotations/tarballs/${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
|
|
|
|
|
|
|