pkgsrc/emulators/xmess/files/endian.sh
kristerw 576af7f350 Resurrect the xmess package (it was removed 2 years ago since xmess is
included in the xmame tar ball. xmess doesn't however get updated for
every new mame release, so it makes sense of having a separate package
for it.)

The current xmess version is xmess-0.37b15.2.
2001-09-02 23:04:23 +00:00

4 lines
279 B
Bash
Executable file

#!/bin/sh
# $Id: endian.sh,v 1.1 2001/09/02 23:04:23 kristerw Exp $
# Trivial script to output BIG_ENDIAN or LITTLE_ENDIAN
printf '#include <machine/endian.h>\n#if BYTE_ORDER == BIG_ENDIAN\nORDER_BIG_ENDIAN\n#else\nORDER_LITTLE_ENDIAN\n#endif\n' | cpp -P | sed -n 's/^ORDER_//p'