mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-11 22:13:19 +01:00
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:
9
src/bash/linux-deploy.bash
Executable file
9
src/bash/linux-deploy.bash
Executable 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
|
||||
Reference in New Issue
Block a user