10 lines
223 B
Bash
10 lines
223 B
Bash
#!/bin/sh
|
|
set -e -x
|
|
test $# -eq 1
|
|
test ! -d cdi
|
|
git clone git://github.com/cdi-spec/cdi.git
|
|
cd ./cdi
|
|
git checkout -b tag-${1} ${1}
|
|
git archive --format=tar --prefix=cdi-api-${1}/ HEAD:api \
|
|
| xz >../cdi-api-${1}.tar.xz
|