File: update.sh

package info (click to toggle)
libcgi-application-plugin-authorization-perl 0.07-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 332 kB
  • ctags: 81
  • sloc: perl: 1,236; sh: 29; makefile: 2
file content (33 lines) | stat: -rwxr-xr-x 771 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
33
#!/bin/sh

set -e

DESTDIR=${DESTDIR:-../tarballs}
MODULE=CGI-Application-Plugin-Authorization
PACKAGE=libcgi-application-plugin-authorization-perl
VERSION=0.07
AD_VERS=0.01
D_AD=driver-ad
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}/${D_AD}/watch ${FD} ${NS} ${DD} ${US} ${AD_VERS} && true;
    cd ${DESTDIR}
    AD=`ls ${MODULE}-Driver-ActiveDirectory*.tar.gz`
    mv ${AD} ${PACKAGE}_${VERSION}.orig-${D_AD}.tar.gz
    cd -
else
    echo report;
    uscan ${RS} && true;
    uscan ${DC}/${D_AD}/watch ${RS} ${DD} ${US} ${AD_VERS} && true;
fi