xref: /glogg/release-source.sh (revision afcc2cb7f4c53ca0b75798e15ea4c72f949f1fcc)
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