xref: /glogg/release-source.sh (revision db1ac0ecca70067e52ba8a937e8a96c1ea7be2ea)
1#!/bin/bash
2
3VERSION=$(git describe | sed -e "s/^v//")
4echo "echo \"$VERSION\" > .tarball-version"
5echo "git archive --format=tar --prefix=glogg-$VERSION/ v$VERSION >glogg-$VERSION.tmp"
6echo "tar --append -f glogg-$VERSION.tmp --transform s_^_glogg-$VERSION/_ .tarball-version"
7echo "gzip < glogg-$VERSION.tmp > glogg-$VERSION.tar.gz"
8echo "rm .tarball-version glogg-$VERSION.tmp"
9
10