File: nobinary_dummy

package info (click to toggle)
pike8.0 8.0.702-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 79,608 kB
  • sloc: ansic: 266,508; xml: 186,324; makefile: 3,537; sh: 1,731; cpp: 1,328; lisp: 655; awk: 441; asm: 242; objc: 240; pascal: 157; perl: 34; sed: 34
file content (65 lines) | stat: -rwxr-xr-x 1,300 bytes parent folder | download | duplicates (6)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
# This takes the place of the preprocessor, compiler and linker when
# --disable-binary is used. It's designed to fake success for all
# configure tests, so that e.g. make depend will go through all
# modules properly.
#
# Created 2002-01-26 by Martin Stjernholm

# First argument might be "cc", "cpp" or similar to say what should be
# faked. If it's something else, the script has taken the place of
# something returned by AC_CHECK_PROG.

case "$1" in
  cc)
    shift

    prog="a.out"
    compile=""
    source=""

    while test 0 -lt "$#"
    do
      case "$1" in
        -c)
	  compile=yes
	  ;;
	-o)
	  shift
	  prog="$1"
	  ;;
	-o*)
	  prog=`echo $1 | sed -e's/^-o//'`
	  ;;
	-[ILRDUx])
	  shift
	  ;;
	-*)
          ;;
        +*)
	  ;;
	*)
	  source="`echo \"$1\" | sed -e 's:^.*/\([^/]*\)$:\\1:'`"
	  ;;
      esac
      shift
    done

    if [ yes = "$compile" -a a.out = "$prog" ]; then
      prog="`echo \"$source\" | sed -e 's/\\..\$//'`.o"
    fi

    test x"$prog" = x || {
      rm -f "$prog" 2>/dev/null
      echo "#! /bin/sh" > "$prog"
      chmod 775 "$prog"
    }
    ;;

  *)
    # A space causes the output to have some length, but not any
    # characters that can confuse things if it's e.g. inserted in a
    # program argument list.
    echo " "
    ;;
esac