File: orig-tar.sh

package info (click to toggle)
libcommons-discovery-java 0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 788 kB
  • ctags: 494
  • sloc: java: 2,589; xml: 1,266; sh: 12; makefile: 6
file content (18 lines) | stat: -rwxr-xr-x 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -eu

VERSION=$2
TAR=../libcommons-discovery-java_$VERSION.orig.tar.gz
DIR=commons-discovery-$VERSION
TAG=$(echo "DISCOVERY_$VERSION" | sed -re's,\.,_,g')

svn export http://svn.apache.org/repos/asf/commons/proper/discovery/tags/${TAG}/ $DIR
tar -c -z -f $TAR $DIR
rm -rf $DIR ../$TAG

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
  . .svn/deb-layout
  mv $TAR $origDir && echo "moved $TAR to $origDir"
fi