File: orig-tar.sh

package info (click to toggle)
libjdom2-java 2.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 4,564 kB
  • ctags: 5,819
  • sloc: java: 48,359; xml: 1,071; sh: 18; makefile: 15
file content (23 lines) | stat: -rwxr-xr-x 472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

VERSION=$(echo $2)
TAR=../libjdom2-java_${VERSION}.orig.tar.xz
DIR=jdom-JDOM-*

tar xvf $3
rm $3
XZ_OPT=--best tar -c -J -f $TAR \
    --exclude '*.jar' \
    --exclude '.gitignore' \
    --exclude 'hamlet.xml' \
    --exclude 'core/samples/catalog.xml' \
    --exclude 'core/samples/catalog.xsl' \
    $DIR
rm -rf $DIR

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