File: orig-tar.sh

package info (click to toggle)
annotation-indexer 1.9-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 148 kB
  • sloc: java: 449; xml: 45; sh: 13; makefile: 5
file content (18 lines) | stat: -rwxr-xr-x 394 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

VERSION=$2
TAR=../annotation-indexer_$VERSION.orig.tar.xz
DIR=annotation-indexer-$VERSION
mkdir -p $DIR

# Expand the upstream tarball
tar -xzf ../$3 -C $DIR --strip-components=1
rm ../$3
# Repack excluding stuff we don't need
XZ_OPT=--best tar -v -c -J -f $TAR \
    --exclude '*.jar' \
    --exclude '*.class' \
    --exclude 'CVS' \
    --exclude '.svn' \
    $DIR
rm -rf $DIR