File: generic

package info (click to toggle)
cct 20170919%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 333,956 kB
  • sloc: xml: 837,386; perl: 12,630; sh: 1,602; makefile: 17
file content (18 lines) | stat: -rwxr-xr-x 512 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# Wrapper script for cct scripts that are needing CCT_HOME variable set

SCRIPTNAME=`basename $0`

export CCT_HOME=/usr/share/cct

if [ -x ${CCT_HOME}/scripts/${SCRIPTNAME}.sh ] ; then
    SCRIPT=${CCT_HOME}/scripts/${SCRIPTNAME}.sh
else
    if [ -x ${CCT_HOME}/scripts/${SCRIPTNAME}.pl ] ; then
        SCRIPT=${CCT_HOME}/scripts/${SCRIPTNAME}.pl
    else
        echo "Script ${CCT_HOME}/scripts/${SCRIPTNAME}.(sh|pl) is missing. Please check cct installation."
        exit 1
    fi
fi
${SCRIPT} $@