16 lines
396 B
Bash
Executable File
16 lines
396 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd `dirname $0`/..
|
|
|
|
sed -e 's/^\(.*\$([0-9]).*\)$/# \1/' \
|
|
-e 's/\$(\([^)]*\))/${\1}/g' \
|
|
-e 's/^FLEX.*$//g' \
|
|
-e 's/^\([^#=]*\)=\([^"]*\)$/if [ "x$\1" = "x" ]; then \1="\2"; fi/' \
|
|
config/Makefile > config/config.sh
|
|
|
|
if [ "x$EXE" = "x.exe" -a "x$SYSTEM" != "xcygwin" ]; then
|
|
echo "WINDOWS=true" >> config/config.sh
|
|
else
|
|
echo "WINDOWS=false" >> config/config.sh
|
|
fi
|