File: update.sh

package info (click to toggle)
libcgi-application-plugin-viewcode-perl 1.02-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 312 kB
  • ctags: 189
  • sloc: perl: 1,788; sh: 52; makefile: 2
file content (32 lines) | stat: -rwxr-xr-x 748 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/sh

set -e

DESTDIR=${DESTDIR:-../tarballs}
MODULE=CGI-Application-Plugin-ViewCode
PACKAGE=libcgi-application-plugin-viewcode-perl
VERSION=1.02
DEBUG_VERS=1.00
FD=--force-download
NS=--no-symlink
RE=--rename
DD="--destdir ${DESTDIR}"
RS=--report-status
DC=-"-watch debian/components"
US=--upstream-version

if [ $1 ]
then
    echo update;
    rm -f ${DESTDIR}/${MODULE}*.tar.gz
    uscan ${FD} ${RE} ${DD} && true;
    uscan ${DC}/ds/watch ${FD} ${NS} ${DD} ${US} ${DEBUG_VERS} && true;
    cd ${DESTDIR}
    DEBUG=`ls CGI-Application-Plugin-DebugScreen*.tar.gz`
    mv ${DEBUG} ${PACKAGE}_${VERSION}.orig-ds.tar.gz
    cd -
else
    echo report;
    uscan ${RS} && true;
    uscan ${DC}/ds/watch ${RS} ${DD} ${US} ${DEBUG_VERS} && true;
fi