update to 1.1.0

This commit is contained in:
Felix Schwarz 2020-11-07 12:05:03 +01:00
commit db43cdd779
5 changed files with 72 additions and 34 deletions

22
export-git-snapshot.sh Executable file
View file

@ -0,0 +1,22 @@
#!/bin/bash
PROJECT=css-parsing-tests
REPO=git@github.com:SimonSapin/css-parsing-tests.git
githash=$1
if [ -z "$githash" ]; then
echo "usage: $0 GITHASH"
exit 1
fi
shorthash=${githash:0:8}
outputfile="${PROJECT}"-$shorthash.tar.gz
rm -rf "${PROJECT}"-temp
git clone "${REPO}" "${PROJECT}"-temp
cd "${PROJECT}"-temp
git archive --prefix="${PROJECT}"-$shorthash/ --format=tar ${githash} \
| gzip --stdout > ../$outputfile
cd ..
rm -rf "${PROJECT}"-temp
echo "exported source code in $outputfile"