diff options
| author | Ken Dreyer <ktdreyer@ktdreyer.com> | 2015-04-11 10:11:30 -0600 |
|---|---|---|
| committer | Ken Dreyer <ktdreyer@ktdreyer.com> | 2015-04-11 10:11:30 -0600 |
| commit | 2957c1fb52216a43e9b6fc94d4fd7d02cf6738d8 (patch) | |
| tree | f56d3e3980e6e58876d4116c6c32a230fc2e407e /rubygem-pathspec-generate-tarball.sh | |
| parent | fb6c28448eb02b63db756ff5e1c901fad707da8f (diff) | |
| download | rubygem-pathspec-2957c1fb52216a43e9b6fc94d4fd7d02cf6738d8.tar.gz rubygem-pathspec-2957c1fb52216a43e9b6fc94d4fd7d02cf6738d8.tar.xz rubygem-pathspec-2957c1fb52216a43e9b6fc94d4fd7d02cf6738d8.zip | |
Diffstat (limited to 'rubygem-pathspec-generate-tarball.sh')
| -rwxr-xr-x | rubygem-pathspec-generate-tarball.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/rubygem-pathspec-generate-tarball.sh b/rubygem-pathspec-generate-tarball.sh new file mode 100755 index 0000000..91f0811 --- /dev/null +++ b/rubygem-pathspec-generate-tarball.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e + +VERSION=0.0.2 + +GITHUBURL=https://github.com/highb/pathspec-ruby/archive/${VERSION}.zip + + +# download zipball +if [[ ! -f pathspec-ruby-$VERSION.zip ]]; then + curl -o pathspec-ruby-$VERSION.zip -L $GITHUBURL +fi + +# extract zipball +[[ -d pathspec-ruby-$VERSION ]] && rm -r pathspec-ruby-$VERSION +unzip pathspec-ruby-$VERSION.zip + +pushd pathspec-ruby-$VERSION + # repack + tar -cJvf pathspec-ruby-$VERSION-tests.tar.xz spec + mv pathspec-ruby-$VERSION-tests.tar.xz .. +popd + +# Clean up +rm pathspec-ruby-$VERSION.zip +rm -r pathspec-ruby-$VERSION |
