File: orig-tar.sh

package info (click to toggle)
simple-http 4.1.21-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,324 kB
  • ctags: 3,618
  • sloc: java: 16,228; xml: 176; sh: 9; makefile: 5
file content (15 lines) | stat: -rwxr-xr-x 387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

VERSION="$2"
TAR=../simple-http_$VERSION.orig.tar.gz
DIR=simple-http-$VERSION
mkdir -p $DIR

# Unpack ready fo re-packing
tar -xzf $TAR -C $DIR --strip-components=1

GZIP=--best tar -czf $TAR --exclude '*.jar' --exclude '*.swp' \
        --exclude '*.class' --exclude 'CVS' --exclude '.svn' \
        --exclude "$DIR/javadoc" --exclude "$DIR/test/report" $DIR

rm -rf $DIR