chore(bash): move all scripts into src/bash

That way, they are more official than hidden scripts dumped in the
project root.

[skip ci]
This commit is contained in:
Sebastian Thiel
2015-05-10 18:09:00 +02:00
parent be117767a1
commit ad6dd7758e
5 changed files with 1 additions and 1 deletions

9
src/bash/linux-deploy.bash Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
echo "NOTE: I assume you have called the respective make cargo-cli ARGS=build beforehand"
version=${1:?First argument must be the version CLI we deploy, like v0.1.0}
rtype=${2:?Second argument is either 'release' or 'debug'}
tar_basename=google-apis-rs_cli-${version}_linux-x86-64_${rtype}
tar_file=${tar_basename}.tar.gz
tar -czf $tar_file --transform "s%^.*/%%" -T <(find gen -executable -type f -path "*/${rtype}/*" -not \( -name "*.*" -or -name "*script*" -or -regex ".*-[a-f0-9]{16}" \)) || exit $?
echo Wrote $tar_file