#!/bin/sh

cd `dirname $0`/..

sed \
    -e 's/^#ml \(.*\)/\1/' \
    -e 's/^\(#.*\)$/(* \1 *)/' \
    -e 's/^\(.*\$([0-9]).*\)$/(* \1 *)/' \
    -e 's/^\([^(=]*\)=\([^"]*\)$/let <:lower<\1>> = "\2";;/' \
    -e 's/\$(\([^)]*\))/"\^<:lower<\1>>\^"/g' \
    -e 's/""\^//g' \
    -e 's/\^""//g' \
    -e 's/^let <lower>\(MAKE\|DO\).*$//g' \
    -e 's/"true"/true/g' \
    -e 's/"false"/false/g' \
    config/Makefile | \
    sed -f build/tolower.sed | \
    sed -f build/tolower.sed | \
    sed -f build/tolower.sed > myocamlbuild_config.ml

#!/bin/sh

cd `dirname $0`/..

sed \
    -e 's/^#ml \(.*\)/\1/' \
    -e 's/^\(#.*\)$/(* \1 *)/' \
    -e 's/^\(.*\$([0-9]).*\)$/(* \1 *)/' \
    -e 's/^\([^(=]*\)=\([^"]*\)$/let <:lower<\1>> = "\2";;/' \
    -e 's/\$(\([^)]*\))/"\^<:lower<\1>>\^"/g' \
    -e 's/""\^//g' \
    -e 's/\^""//g' \
    -e 's/^let <:lower<\(MAKE\|DO\).*$//g' \
    -e 's/"true"/true/g' \
    -e 's/"false"/false/g' \
    config/Makefile | \
    sed -f build/tolower.sed | \
    sed -f build/tolower.sed | \
    sed -f build/tolower.sed > myocamlbuild_config.ml

Fix myocamlbuild_config.ml generation bug on Win32
Fix myocamlbuild_config.ml generation bug on Win32


git-svn-id: e7e61699ce1738538ffebb75374fbea0924bc775@7910 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
