Skip to content
This repository
tag: v705
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (14 sloc) 0.572 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#! /bin/sh
CYG=$(uname | grep CYGWIN)
[ "$1" = "WIN" ] && WINDOWS=1
[ -n "$CYG" ] && CYGWIN=1
[ -z "$CYG" ] && UNIX=1
FILE="mlstate_platform.h"
echo "// generated C $CYGWIN L $UNIX W $WINDOWS" > $FILE
echo "// can define MLSTATE_WINDOWS MLSTATE_UNIX MLSTATE_CYGWIN" >> $FILE
echo "#ifndef MLSTATE_PLATFORM_H" >> $FILE
echo "#define MLSTATE_PLATFORM_H" >> $FILE
[ -n "$WINDOWS" ] && echo "#define MLSTATE_WINDOWS 1" >> $FILE
[ -n "$UNIX" ] && echo "#define MLSTATE_UNIX 1" >> $FILE
[ -n "$CYGWIN" ] && echo "#define MLSTATE_CYGWIN 1" >> $FILE
echo "#endif" >> $FILE
Something went wrong with that request. Please try again.