#!/bin/sh

test $# -eq 2 || { echo "Usage: $(basename $0) <archive format> <tag>" >&2; exit 1; }

format=${1}
tag=${2}
version=${tag#v}

git archive --format=${format} --prefix=qbs-${version}/ -o qbs-${version}.src.${format} ${tag}

#!/bin/sh

test $# -eq 2 || { echo "Usage: $(basename $0) <archive format> <tag>" >&2; exit 1; }

format=${1}
tag=${2}
version=${tag#v}
dir_name=qbs-src-${version}

git archive --format=${format} --prefix=${dir_name}/ -o ${dir_name}.${format} ${tag}

Change file names of release archives to a more common pattern.
Change file names of release archives to a more common pattern.

Change-Id: I40d41f1262632e4dda884948df4ac81ccf12af55
Reviewed-by: Joerg Bornemann <47777b9406dbddd02a3fdca8341789a013805a11@theqtcompany.com>
