From 89a253cab8bdd25dd1a2030bc2bc1274f5604076 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 31 May 2021 14:33:08 +0200 Subject: v1.8.0 from Fedora --- dlothers.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 dlothers.sh (limited to 'dlothers.sh') 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 -- cgit