File: get-orig-source

package info (click to toggle)
python-clips 1.0.7.348%2Bclips-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,376 kB
  • ctags: 2,544
  • sloc: ansic: 17,065; python: 5,668; sh: 20; makefile: 12
file content (32 lines) | stat: -rw-r--r-- 812 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

# bail out upon error
set -e

PACKAGE=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
TARDIR=../tarballs
mkdir -p $TARDIR

VERSION=`uscan --rename --verbose --force-download |
    grep "Newest version on remote site is .* local version is .*" |
    head -n 1 |
    sed "s/Newest version on remote site is \([a-z0-9.]\+\),.*/\1/"`

mkdir -p $TARDIR
cd $TARDIR

UTAR="${PACKAGE}_${VERSION}.orig.tar.gz"
mv ../${UTAR} .
tar -xzf ${UTAR}

mv pyclips ${PACKAGE}_${VERSION}+clips.orig # .orig is requested by Developers Reference 3.4.4 <C2><A7>6.7.8.2

cd ${PACKAGE}_${VERSION}+clips.orig
wget http://pyclips.sourceforge.net/files/CLIPSSrc.zip

cd ..
rm $UTAR

BZIP2="--best" tar -cjf ${PACKAGE}_${VERSION}+clips.orig.tar.bz2 ${PACKAGE}_${VERSION}+clips.orig
rm -rf ${PACKAGE}_${VERSION}+clips.orig