2007-02-07 01:40:59 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-07-27 07:17:02 -07:00
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# OCaml #
|
|
|
|
# #
|
|
|
|
# Nicolas Pouillard, projet Gallium, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 2007 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
|
|
# under the terms of the Q Public License version 1.0. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
2007-02-07 01:40:59 -08:00
|
|
|
cd `dirname $0`/..
|
|
|
|
|
2007-10-08 07:19:34 -07:00
|
|
|
sed -e 's/^\(.*\$([0-9]).*\)$/# \1/' \
|
|
|
|
-e 's/\$(\([^)]*\))/${\1}/g' \
|
2007-11-06 07:16:56 -08:00
|
|
|
-e 's/^FLEX.*$//g' \
|
2007-10-08 07:19:34 -07:00
|
|
|
-e 's/^\([^#=]*\)=\([^"]*\)$/if [ "x$\1" = "x" ]; then \1="\2"; fi/' \
|
2007-02-07 01:40:59 -08:00
|
|
|
config/Makefile > config/config.sh
|
2010-05-11 06:28:31 -07:00
|
|
|
|
|
|
|
if [ "x$EXE" = "x.exe" -a "x$SYSTEM" != "xcygwin" ]; then
|
|
|
|
echo "WINDOWS=true" >> config/config.sh
|
|
|
|
else
|
|
|
|
echo "WINDOWS=false" >> config/config.sh
|
|
|
|
fi
|