diff options
author | Remi Collet <remi@remirepo.net> | 2021-05-31 14:33:08 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2021-05-31 14:33:08 +0200 |
commit | 89a253cab8bdd25dd1a2030bc2bc1274f5604076 (patch) | |
tree | bc47883aee0b72b302f23ad49d5f8af57aad6456 /dlothers.sh | |
parent | 3efb0ec773f7bb22e61777701eaa240bcb302b6b (diff) |
Diffstat (limited to 'dlothers.sh')
-rwxr-xr-x | dlothers.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dlothers.sh b/dlothers.sh new file mode 100755 index 0000000..6a7fd8f --- /dev/null +++ b/dlothers.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# This was borrowed from nodejs-grunt-contrib-concat + +tag=v1.8.0 + +set -e + +tmp=$(mktemp -d) + +trap cleanup EXIT +cleanup() { + set +e + [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" +} + +unset CDPATH +pwd=$(pwd) + +pushd "$tmp" +git clone https://github.com/WordPress/Requests.git +ls +cd Requests +git archive --prefix="docs/" --format=tar ${tag}:docs/ \ + | bzip2 > "$pwd"/docs-${tag}.tar.bz2 +git archive --prefix="examples/" --format=tar ${tag}:examples/ \ + | bzip2 > "$pwd"/examples-${tag}.tar.bz2 +git archive --prefix="tests/" --format=tar ${tag}:tests/ \ + | bzip2 > "$pwd"/tests-${tag}.tar.bz2 +popd |