6 if test -f IDMETA; then
9 echo "Warning: no IDMETA file. Limping along anyway" >&2
12 #we will keep this to get the project name
13 DEBCHANGELOG=debian/changelog
14 l=`head -1 $DEBCHANGELOG`
16 if [ "x$NAME" != x ]; then
17 echo "Got name $NAME from IDMETA file"
19 NAME=`echo $l|sed 's/ .*//g'`
20 echo "Warning: assuming name $NAME from debian/changelog"
23 if [ "x$2" != x ]; then
24 echo "Overriding name $NAME with $2"
28 if [ "x$VERSION" != x ]; then
29 echo "Got version $VERSION from IDMETA file"
31 FULLVERSION=`echo $l|sed 's/.*(//g'|sed 's/).*//g'`
32 VERSION=`echo $FULLVERSION|sed 's/-.*//g'`
33 echo "Warning: assuming version $VERSION from debian/changelog"
36 if [ "x$1" != x ]; then
37 echo "Overriding version $VERSION with $1"
41 git archive --format=tar --prefix=$NAME-$VERSION/ v${VERSION} > tmp.tar || die "This version is not tagged in Git";
44 for file in debian $OMIT_FROM_DIST; do
45 echo "Omitting $file from distribution"
46 rm -r $NAME-$VERSION/$file
48 tar cfz $NAME-$VERSION.tar.gz $NAME-$VERSION