blob: 0fa00f38dfd5e6795d0f2c0ef70de8967a912dc5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#!/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}
|