update to 1.1.0
This commit is contained in:
parent
e0e10b2d42
commit
db43cdd779
5 changed files with 72 additions and 34 deletions
22
export-git-snapshot.sh
Executable file
22
export-git-snapshot.sh
Executable 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue