File: need-prt

package info (click to toggle)
cssc 1.0.1-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,620 kB
  • ctags: 1,424
  • sloc: cpp: 13,500; sh: 4,759; ansic: 2,971; perl: 342; makefile: 342; awk: 11
file content (30 lines) | stat: -rw-r--r-- 688 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
#! /bin/sh

# Common function definitions.
. ../common/command-names

# Find out if we have a "prt" executable. 

if test -x "${prt}"
then
    HAVE_PRT=true
else
    "${prt}" ; rv=$?
    if test $rv -gt 120 
    then
	HAVE_PRT=false
    else
	# We passed no arguments to prt so it returned an error code
	# but that error code is smaller than the error code we would have 
	# got if the executable had been missing. 
	HAVE_PRT=true
    fi
fi

$HAVE_PRT || {
    echo "The tests in $0 will not be carried out on this system because ${prt} is missing."

    # Exit successfully because we want the test suite to pass when run against
    # SCCS implementations that lack SCCS.
    exit 0
}