view version.sh @ 7335:8db0cba91b6c

When we're compiling/running on a kernel without sse/sse2 support, we have to be careful when using gcc-3.x. gcc-3.x is able to emit sse/sse2 instructions for normal C code when we compile for maximum performance with something like the -march=athlon-xp switch. So, if the kernel does not support the sse/sse2 instruction set extension, we have to tell gcc-3.x to not emit see/sse2 instructions for regular C code, otherwise mplayer might crash with a SIGILL signal.
author jkeil
date Mon, 09 Sep 2002 19:01:34 +0000
parents 142e0fa289d4
children a49219323787
line wrap: on
line source

#!/bin/sh

last_cvs_update=`date -r CVS/Entries +%y%m%d-%H:%M 2>/dev/null`
if test $? -ne 0 ; then
        # probably no gnu date installed(?), use current date
        last_cvs_update=`date +%y%m%d-%H:%M`
elif test `uname -s` = 'Darwin' ; then
        # darwin's date has different meaning for -r
        last_cvs_update=`date +%y%m%d-%H:%M`
fi

echo "#define VERSION \"CVS-${last_cvs_update}-$1 \"" >version.h