File: update.sh

package info (click to toggle)
libhtml-template-pluggable-perl 0.17-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 264 kB
  • ctags: 16
  • sloc: perl: 369; sh: 28; makefile: 2
file content (32 lines) | stat: -rwxr-xr-x 755 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=HTML-Template-Pluggable
PACKAGE=libhtml-template-pluggable-perl
VERSION=0.17
HELPERS_VERS=0.04
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}/helpers/watch ${FD} ${NS} ${DD} ${US} ${HELPERS_VERS} && true;
    cd ${DESTDIR}
    HELPERS=`ls HTML-Template-Plugin-Dot-Helpers*.tar.gz`
    mv ${HELPERS} ${PACKAGE}_${VERSION}.orig-helpers.tar.gz
    cd -
else
    echo report;
    uscan ${RS} && true;
    uscan ${DC}/helpers/watch ${RS} ${DD} ${US} ${HELPERS_VERS} && true;
fi