Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > b2a2c97ed367fc3e0a03213ec8614964 > files > 2

nodejs-stylus-0.35.1-1.fc18.src.rpm

#!/bin/bash

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