File: orig-tar.sh

package info (click to toggle)
ehcache 2.6.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 9,140 kB
  • ctags: 14,506
  • sloc: java: 84,615; xml: 13,172; perl: 33; makefile: 15; sh: 13
file content (19 lines) | stat: -rwxr-xr-x 502 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=ehcache-$2.orig
TAR=../ehcache_$2.orig.tar.xz

# clean up the upstream tarball
svn export http://svn.terracotta.org/svn/ehcache/tags/ehcache-core-$2/ $DIR
# FIXME: check PDF and DOC files
XZ_OPT=--best tar cJf $TAR -X debian/orig-tar.exclude $DIR
rm -rf $DIR ../ehcache-core-$2

# move to directory 'tarballs'
if [ -r .svn/deb-layout ]; then
    . .svn/deb-layout
    mv $TAR $origDir
    echo "moved $TAR to $origDir"
fi