Debian Codegraph @

tst/mockpkg/configure

raw
1 #!/bin/sh
2 # usage: configure gappath
3 # this script creates a `Makefile' from `Makefile.in'
4
5 set -e
6
7 GAPPATH=../..
8 while test "$#" -ge 1 ; do
9 option="$1" ; shift
10 case "$option" in
11 --with-gaproot=*) GAPPATH=${option#--with-gaproot=}; ;;
12 -*) echo "ERROR: unsupported argument $option" ; exit 1;;
13 *) GAPPATH="$option" ;;
14 esac
15 done
16
17 if test ! -r "$GAPPATH/sysinfo.gap" ; then
18 echo
19 echo "No file $GAPPATH/sysinfo.gap found."
20 echo
21 echo "Usage: ./configure [GAPPATH]"
22 echo " where GAPPATH is a path to your GAP installation"
23 echo " (The default for GAPPATH is \"../..\")"
24 echo
25 echo "Either your GAPPATH is incorrect or the GAP it is pointing to"
26 echo "is not properly compiled (do \"./configure && make\" there first)."
27 echo
28 echo "Aborting... No Makefile is generated."
29 echo
30 exit 1
31 fi
32
33 echo "Using settings from $GAPPATH/sysinfo.gap"
34 sed -e "s;@GAPPATH@;$GAPPATH;g" Makefile.in > Makefile