diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f39eecf --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +.git* export-ignore +makesrcdist export-ignore diff --git a/makesrcdist b/makesrcdist new file mode 100755 index 0000000..8384fd6 --- /dev/null +++ b/makesrcdist @@ -0,0 +1,19 @@ +#!/bin/sh +# +# makesrcdist - make a source distribution of pdfio. +# + +if test $# != 1; then + echo "Usage: ./makesrcdist version" + exit 1 +fi + +version=$1 + +echo Creating tag for release... +git tag -m "Tag $version" v$version +git push origin v$version + +echo Creating pdfio-$version.tar.gz... +git archive --format tar --prefix=pdfio-$version/ HEAD | gzip -v9 >pdfio-$version.tar.gz +gpg --detach-sign pdfio-$version.tar.gz