2006-09-04 10:26:34 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2008-03-24 18:11:41 +01:00
|
|
|
PROJECT=annotations
|
2006-09-04 10:26:34 +02:00
|
|
|
|
|
|
|
VERSION=`grep DOCVERSION yo/version.yo | sed 's/SUBST(DOCVERSION)(\(.*\))/\1/'`
|
|
|
|
|
2008-03-24 18:11:41 +01:00
|
|
|
DISTRIBUTION=c++-${PROJECT}-${VERSION} # define the distribution's dir name
|
2006-09-04 10:26:34 +02:00
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2008-03-24 18:11:41 +01:00
|
|
|
tgz()
|
|
|
|
{
|
|
|
|
ln -s trunk ${DISTRIBUTION} # distribution's dir name
|
|
|
|
|
2008-12-06 13:45:35 +01:00
|
|
|
tar czvf $1 --exclude-from=trunk/excluded ${DISTRIBUTION}/*
|
2008-03-24 18:11:41 +01:00
|
|
|
|
|
|
|
rm ${DISTRIBUTION} # rm the link
|
|
|
|
}
|
|
|
|
|
|
|
|
case "$1" in
|
2009-02-15 16:40:53 +01:00
|
|
|
(d)
|
2008-03-24 18:11:41 +01:00
|
|
|
tgz ${HOME}/debian/${PROJECT}/tarballs/c++-${PROJECT}_${VERSION}.orig.tar.gz
|
|
|
|
;;
|
|
|
|
|
2009-02-15 16:40:53 +01:00
|
|
|
(l|u)
|
2008-03-24 18:11:41 +01:00
|
|
|
tgz c++-${PROJECT}_${VERSION}.tar.gz
|
|
|
|
|
|
|
|
if [ "$1" == "u" ]
|
|
|
|
then
|
|
|
|
scp c++-${PROJECT}_${VERSION}.tar.gz \
|
|
|
|
oosix:ftp/debian/${PROJECT}
|
|
|
|
md5sum c++-${PROJECT}_${VERSION}.tar.gz
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
(*)
|
|
|
|
echo "
|
|
|
|
Provide arg:
|
2009-02-15 16:40:53 +01:00
|
|
|
d (debian) to create a local .orig.tar.gz archive in
|
|
|
|
../debian/${PROJECT}/tarballs
|
|
|
|
l (local) to create ${PROJECT}_${VERSION}.tar.gz in this directory
|
|
|
|
u (upload) same as 't', but upload to oosix and show MD5 hash
|
2008-03-24 18:11:41 +01:00
|
|
|
"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
2006-09-04 10:26:34 +02:00
|
|
|
|