File: orig-tar.sh

package info (click to toggle)
jruby-joni 2.2.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,260 kB
  • sloc: java: 17,071; xml: 213; sh: 153; makefile: 2
file content (14 lines) | stat: -rwxr-xr-x 306 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>

SOURCE=jruby-joni
DIR=${SOURCE}-$2

git clone http://github.com/jruby/joni.git $DIR
(cd $DIR && git checkout $2)

tar cfz ../${SOURCE}_$2.orig.tar.gz --exclude .git $DIR

rm -rf $DIR ../$2
echo 'created orig tarball successfully'