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
|
|
|
|
2013-05-29 20:44:08 +02:00
|
|
|
VERSION=`grep DOCVERSION ${PROJECT}/yo/version.yo |
|
2013-05-30 10:13:48 +02:00
|
|
|
sed 's/SUBST(DOCVERSION)(\(.*\))/\1/'`
|
2006-09-04 10:26:34 +02:00
|
|
|
|
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
|
|
|
|
2008-03-24 18:11:41 +01:00
|
|
|
tgz()
|
|
|
|
{
|
2012-12-14 13:18:56 +01:00
|
|
|
ln -s ${PROJECT} ${DISTRIBUTION} # distribution's dir name
|
2008-03-24 18:11:41 +01:00
|
|
|
|
2013-05-29 20:44:08 +02:00
|
|
|
tar czvf $1 --exclude-from=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)
|
2013-05-29 20:44:08 +02:00
|
|
|
tgz ../tarballs/c++-${PROJECT}_${VERSION}.orig.tar.gz
|
2008-03-24 18:11:41 +01:00
|
|
|
;;
|
|
|
|
|
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 \
|
2013-05-30 10:13:48 +02:00
|
|
|
oosix.icce.rug.nl:ftp/debian/${PROJECT}
|
2008-03-24 18:11:41 +01:00
|
|
|
md5sum c++-${PROJECT}_${VERSION}.tar.gz
|
2012-12-14 13:18:56 +01:00
|
|
|
rm c++-${PROJECT}_${VERSION}.tar.gz
|
2008-03-24 18:11:41 +01:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
|
|
|
|
(*)
|
|
|
|
echo "
|
|
|
|
Provide arg:
|
2009-02-15 16:40:53 +01:00
|
|
|
d (debian) to create a local .orig.tar.gz archive in
|
2013-05-29 20:44:08 +02:00
|
|
|
../tarballs/
|
2009-02-15 16:40:53 +01:00
|
|
|
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
|
|
|
|