-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmakesrcdist
More file actions
executable file
·23 lines (18 loc) · 647 Bytes
/
makesrcdist
File metadata and controls
executable file
·23 lines (18 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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 --prefix=rasterview-$version/ | gzip -v9 >~/Desktop/rasterview-$version.tar.gz
gpg --detach-sign ~/Desktop/rasterview-$version.tar.gz
echo Creating rasterview-$version.zip...
git archive --format zip HEAD --prefix=rasterview-$version/ >~/Desktop/rasterview-$version.zip
gpg --detach-sign ~/Desktop/rasterview-$version.zip