File: orig-tar.sh

package info (click to toggle)
plexus-cli 1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 136 kB
  • ctags: 37
  • sloc: java: 385; xml: 51; sh: 13; makefile: 5
file content (26 lines) | stat: -rwxr-xr-x 595 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh -e

# There is no svn tag for plexus-cli! :-(

# VERSION=$2
VERSION=1.2
REVISION=7025

TAR=../plexus-cli_$VERSION.orig.tar.gz
DIR=plexus-cli-$VERSION
TAG=plexus-cli-$VERSION

svn export -r$REVISION http://svn.codehaus.org/plexus/plexus-components/trunk/plexus-cli $DIR
# New versions should appear here:
#svn export http://svn.codehaus.org/plexus/plexus-components/tags/$TAG $DIR

GZIP=--best tar -c -z -f $TAR $DIR || exit 2
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