aboutsummaryrefslogtreecommitdiffstats
path: root/make-release-archive.sh
blob: 42cc9cf1bb654db34c536eabac31f2b788b5c172 (plain)
1
2
3
4
5
6
7
8
9
#!/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}