Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 17cfd42a10c049989e0ff94fa65c8bc6 > files > 1

nodejs-lodash-2.4.1-1.mga5.src.rpm

#!/bin/bash

tag=2.4.1

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/bestiejs/lodash.git
cd lodash
git archive --prefix="test/" --format=tar tags/${tag}:test/ \
    | bzip2 > "$pwd"/tests-${tag}.tar.bz2
popd