raze/polymer/build/osx/engine/writeengineinfo.sh
Plagman 09f0c239b6 Importing source for great justice
git-svn-id: https://svn.eduke32.com/eduke32@5 1a8010ca-5511-0410-912e-c29ae57300e0
2006-04-13 20:47:06 +00:00

10 lines
453 B
Bash

#!/bin/sh
UNAME=`uname -a`
CC="gcc"
CCVERSION=`$CC -dumpversion`
CCMACHINE=`$CC -dumpmachine`
echo "const char _engine_cflags[] = \"$OTHER_CFLAGS\";" > engineinfo.c
echo "const char _engine_libs[] = \"$LIBS\";" >> engineinfo.c
echo "const char _engine_uname[] = \"$UNAME\";" >> engineinfo.c
echo "const char _engine_compiler[] = \"$CC $CCVERSION $CCMACHINE\";" >> engineinfo.c
echo "const char _engine_date[] = __DATE__ \" \" __TIME__;" >> engineinfo.c