File: orig-tar.sh

package info (click to toggle)
jeuclid 3.1.9-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 5,668 kB
  • sloc: xml: 17,041; java: 14,962; sh: 20; makefile: 18
file content (22 lines) | stat: -rwxr-xr-x 551 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
20
21
22
#!/bin/sh -e

# called by uscan with '--upstream-version' <version> <file>
DIR=jeuclid-parent-$2
TAR=../jeuclid_$2.orig.tar.gz

# clean up the upstream tarball
unzip $3 
# Remove jeuclid-testsuite because it is not used and there are some license
# issues
# Remove the license file of FreeHEP because we disabled the used of this
# feature
tar -c -z -X debian/orig-tar.exclude -f $TAR $DIR/
rm -rf $DIR $3

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