File: orig-tar.sh

package info (click to toggle)
apache-directory-server 2.0.0~M15-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,920 kB
  • sloc: java: 210,236; xml: 7,919; sh: 1,121; makefile: 4
file content (19 lines) | stat: -rwxr-xr-x 621 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e
#
# Removes unwanted content from the upstream sources.
# Called by uscan with '--upstream-version' <version> <file>
#

VERSION=$2
TAR=../apache-directory-server_$VERSION.orig.tar.xz
DIR=apache-directory-server-$VERSION
TAG=$(echo "$VERSION" | sed -re's/~(alpha|beta|rc|m)/-\1/i')

svn export http://svn.apache.org/repos/asf/directory/apacheds/tags/${TAG}/ $DIR
XZ_OPT=--best tar -c -J -f $TAR \
    --exclude '*.jar' \
    --exclude '*.class' \
    --exclude '*.exe' \
    --exclude 'installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/wrapper*' \
    $DIR
rm -rf $DIR ../$TAG