File: test

package info (click to toggle)
libcgi-application-plugin-devpopup-perl 1.07-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 292 kB
  • sloc: perl: 481; sh: 56; makefile: 4
file content (33 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (9)
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

TDIR=COMPONENTS/${DH_COMPONENT}
export PERL5LIB=../../debian/${PACKAGE}/usr/share/perl5

if [ -z ${PACKAGE} ]
then
    echo PACKAGE not set
    exit 1
fi

if [ -z ${DH_COMPONENT} ]
then
    echo DH_COMPONENT not set
    exit 1
fi

if [ ! -d ${TDIR} ]
then
    echo ${TDIR} not a directory
    exit 1
fi

if dh_auto_test -D ${TDIR} 
then
    EXIT_STATUS=0
else
    EXIT_STATUS=1
fi

exit $EXIT_STATUS