File: orig-tar.sh

package info (click to toggle)
maven-site-plugin 2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,384 kB
  • ctags: 466
  • sloc: xml: 2,978; java: 2,420; sh: 12; makefile: 5
file content (18 lines) | stat: -rwxr-xr-x 397 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

set -e

TAR=../maven-site-plugin_$2.orig.tar.gz
DIR=maven-site-plugin-$2
TAG=$(echo maven-site-plugin-$2 | sed -e's,~beta,-beta-,')

svn export http://svn.apache.org/repos/asf/maven/plugins/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