add forking script

This commit is contained in:
Michael McLoughlin
2018-12-19 22:32:45 -08:00
parent 854271d978
commit c477e46045
4 changed files with 143 additions and 13 deletions

16
examples/stadtx/fork.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash -ex
baseurl='https://github.com/dgryski/go-stadtx/raw/3c3d9b328c24a9b5ecd370654cd6e9d60a85752d'
dl() {
filename=$1
url="${baseurl}/${filename}"
{
echo "// Downloaded from '${url}'. DO NOT EDIT."
echo
curl -L ${url}
} > ${filename}
}
dl stadtx.go
dl stadtx_test.go