File: orig-tar.sh

package info (click to toggle)
felix-bundlerepository 2.0.10-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,104 kB
  • sloc: java: 9,178; xml: 2,326; sh: 7; makefile: 2
file content (10 lines) | stat: -rwxr-xr-x 370 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#!/bin/sh -e

VERSION=$2
TAR=../felix-bundlerepository_$VERSION.orig.tar.xz
DIR=felix-bundlerepository-$VERSION
TAG=$(echo "org.apache.felix.bundlerepository-$VERSION" | sed -re's/~(alpha|beta)/-\1-/')

svn export https://svn.apache.org/repos/asf/felix/releases/${TAG}/ $DIR
XZ_OPT=--best tar -c -J -f $TAR --exclude '*.jar' --exclude '*.class' $DIR
rm -rf $DIR ../$TAG