File: configure

package info (click to toggle)
polymake 4.12-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 35,992 kB
  • sloc: cpp: 168,768; perl: 43,375; javascript: 31,575; ansic: 3,007; java: 2,654; python: 633; sh: 268; xml: 117; makefile: 61
file content (29 lines) | stat: -rwxr-xr-x 389 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
#!/bin/sh

top=$(dirname $0)
[ $top = . ] || cd $top

Script=support/configure.pl

ExtractPerl() {
  Perl=perl
  while [ $# -gt 0 ]; do
    arg="${1#PERL=}"
    if [ "$arg" != "$1" ]; then
      Perl="$arg"
      return
    fi
    shift
  done
}

case "$*" in *PERL=*)
  ExtractPerl "$@"
  exec $Perl -I. $Script "$@"
  ;;
?*)
  exec perl -I. $Script "$@"
  ;;
esac

exec perl -I. $Script