File: update.sh

package info (click to toggle)
libcgi-application-plugin-authentication-perl 0.20-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,244 kB
  • ctags: 351
  • sloc: perl: 5,550; sh: 33; makefile: 8
file content (37 lines) | stat: -rwxr-xr-x 1,043 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
33
34
35
36
37
#!/bin/sh

set -e

DESTDIR=${DESTDIR:-../tarballs}
MODULE=CGI-Application-Plugin-Authentication
PACKAGE=libcgi-application-plugin-authentication-perl
VERSION=0.20
DBIC_VERS=0.02
CDBI_VERS=0.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}/driver-dbic/watch ${FD} ${NS} ${DD} ${US} ${DBIC_VERS} && true;
    uscan ${DC}/driver-cdbi/watch ${FD} ${NS} ${DD} ${US} ${CDBI_VERS} && true;
    cd ${DESTDIR}
    DBIC=`ls ${MODULE}-Driver-DBIC*.tar.gz`
    mv ${DBIC} ${PACKAGE}_${VERSION}.orig-driver-dbic.tar.gz
    CDBI=`ls ${MODULE}-Driver-CDBI*.tar.gz`
    mv ${CDBI} ${PACKAGE}_${VERSION}.orig-driver-cdbi.tar.gz
    cd -
else
    echo report;
    uscan ${RS} && true;
    uscan ${DC}/driver-dbic/watch ${RS} ${DD} ${US} ${DBIC_VERS} && true;
    uscan ${DC}/driver-cdbi/watch ${RS} ${DD} ${US} ${CDBI_VERS} && true;
fi