File: orig-tar.sh

package info (click to toggle)
libspring-ldap-java 1.3.0.RELEASE-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,228 kB
  • ctags: 2,136
  • sloc: java: 9,447; xml: 3,261; jsp: 36; makefile: 23; sh: 13
file content (19 lines) | stat: -rwxr-xr-x 677 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh 

set -e

# called by uscan with '--upstream-version' <version> <file>
echo "version $2"
upstream_package="spring-ldap"
package=`dpkg-parsechangelog | sed -n 's/^Source: //p'`
debian_version=`dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p'`
DOCS_URL="https://src.springframework.org/svn/spring-ldap/tags/spring-ldap-$2/src/docbkx/"
TAR=${package}_${debian_version}.orig.tar.gz
DIR=${package}-${debian_version}.orig

# clean up the upstream sources
unzip $3 && mv ${upstream_package}-$2 $DIR
svn export $DOCS_URL $DIR/docs/docbkx
GZIP=--best tar --numeric --group 0 --owner 0 --anchored \
   -X debian/orig-tar.excludes -c -v -z -f $TAR $DIR
rm -rf $3 $DIR