File: update.sh

package info (click to toggle)
libcgi-application-plugin-tt-perl 1.05-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 368 kB
  • ctags: 82
  • sloc: perl: 647; sh: 28; makefile: 2
file content (32 lines) | stat: -rwxr-xr-x 739 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
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

set -e

DESTDIR=${DESTDIR:-../tarballs}
MODULE=CGI-Application-Plugin-TT
PACKAGE=libcgi-application-plugin-tt-perl
VERSION=1.05
LM_VERS=1.02
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}/lastmodified/watch ${FD} ${NS} ${DD} ${US} ${LM_VERS} && true;
    cd ${DESTDIR}
    LM=`ls ${MODULE}-LastModified*.tar.gz`
    mv ${LM} ${PACKAGE}_${VERSION}.orig-lastmodified.tar.gz
    cd -
else
    echo report;
    uscan ${RS} && true;
    uscan ${DC}/lastmodified/watch ${RS} ${DD} ${US} ${LM_VERS} && true;
fi