Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 15 lines (14 sloc) 0.572 kB
fccc685 Initial open-source release
MLstate authored
1 #! /bin/sh
2 CYG=$(uname | grep CYGWIN)
3 [ "$1" = "WIN" ] && WINDOWS=1
4 [ -n "$CYG" ] && CYGWIN=1
5 [ -z "$CYG" ] && UNIX=1
6 FILE="mlstate_platform.h"
7 echo "// generated C $CYGWIN L $UNIX W $WINDOWS" > $FILE
8 echo "// can define MLSTATE_WINDOWS MLSTATE_UNIX MLSTATE_CYGWIN" >> $FILE
9 echo "#ifndef MLSTATE_PLATFORM_H" >> $FILE
10 echo "#define MLSTATE_PLATFORM_H" >> $FILE
11 [ -n "$WINDOWS" ] && echo "#define MLSTATE_WINDOWS 1" >> $FILE
12 [ -n "$UNIX" ] && echo "#define MLSTATE_UNIX 1" >> $FILE
13 [ -n "$CYGWIN" ] && echo "#define MLSTATE_CYGWIN 1" >> $FILE
14 echo "#endif" >> $FILE
Something went wrong with that request. Please try again.