File: orig-tar.sh

package info (click to toggle)
bnd 1.50.0-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,828 kB
  • sloc: java: 39,896; xml: 1,572; makefile: 112; sh: 53
file content (22 lines) | stat: -rwxr-xr-x 380 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

VERSION=$2
TAR=../bnd_$VERSION.orig.tar.gz
DIR=bnd-$VERSION
GIT_DIR=bnd-git

DATE=2011-11-04
git clone git://github.com/bndtools/bnd.git $GIT_DIR
(
  cd $GIT_DIR
  git checkout `git rev-list -n 1 --before="$DATE" master`
)

# Bnd git cleanup
chmod +x debian/git-transform.sh
debian/git-transform.sh $GIT_DIR $DIR

tar -c -z -f $TAR $DIR
rm -rf $DIR
rm -rf $GIT_DIR