File: config-data

package info (click to toggle)
cssc 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 11,368 kB
  • sloc: cpp: 39,446; ansic: 17,403; sh: 11,328; python: 3,923; makefile: 1,929; perl: 342; awk: 15; sed: 15
file content (39 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (4)
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
34
35
36
37
38
39
# Hey, Emacs!  This is a -*- sh -*- script.

# This script retrieves the config information from CSSC in order to 
# figure out if binary file support is available.  This will allow us
# to avoid the situation where we try to test binary files support when
# it's not configured.

# Common function definitions.
. ../common/real-thing

if test -z "${admin}"; then
    echo '${admin} is not set, please source common/test-common before common/config-data' >&2
    exit 1
fi

if $TESTING_CSSC
then
    # Turn on binary file support in CSSC (if it is disabled)
    CSSC_BINARY_SUPPORT=enabled
    export CSSC_BINARY_SUPPORT
    binary_support=true

    max_line_len=`${admin} -V 2>&1         |
	grep "^Maximum body line length.*overridden: " |
	sed -e 's/^.*://' `

else
    # Not CSSC.
    # For the moment, just guess --- and be conservative.
    case `uname` in 
	SunOS) binary_support=true   ;;
	*)     binary_support=false  ;;
    esac

    max_line_len=400
fi

# echo Max line len $max_line_len
# echo Binary support $binary_support