From 5cd44d616b98b69f34e7caacf64ab277f49ab36a Mon Sep 17 00:00:00 2001 From: Michael Sweet Date: Wed, 22 Mar 2017 21:59:04 -0400 Subject: [PATCH] Prep for release. --- .gitattributes | 3 +++ makesrcdist | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .gitattributes create mode 100755 makesrcdist diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..cc0b7c3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +.git* export-ignore +test export-ignore +makesrcdist export-ignore diff --git a/makesrcdist b/makesrcdist new file mode 100755 index 0000000..2245d67 --- /dev/null +++ b/makesrcdist @@ -0,0 +1,18 @@ +#!/bin/sh +# +# makesrcdist - make a source distribution of RasterView. +# + +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 rasterview-$version.tar.gz... +git archive --format tar HEAD | gzip -v9 >rasterview-$version.tar.gz