File: orig-tar.sh

package info (click to toggle)
plexus-containers 1.0~beta3.0.7-7
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,344 kB
  • ctags: 2,495
  • sloc: java: 12,918; xml: 1,606; makefile: 25; sh: 12
file content (18 lines) | stat: -rwxr-xr-x 475 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

TAR=../plexus-containers_$2.orig.tar.gz
DIR=plexus-containers-$2
TAG=$(echo plexus-containers-$2 | sed 's/~\(alpha\|beta\)/-\1-/')

svn export http://svn.codehaus.org/plexus/plexus-containers/tags/$TAG $DIR
# remove as it's packaged elsewhere
rm -r $DIR/plexus-component-metadata
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