other places without checking for its availability already.
Originally committed as revision 12123 to svn://svn.ffmpeg.org/ffmpeg/trunk
#!/bin/bash
-# Even in the 21st century some diffs are not supporting -u.
-diff -u $0 $0 > /dev/null 2>&1
-if [ $? -eq 0 ]; then
- diff_cmd="diff -u"
-else
- diff_cmd="diff"
-fi
# Make sure that the data directory exists
mkdir -p tests/data
kill $FFSERVER_PID
wait > /dev/null 2>&1
rm -f tests/feed1.ffm
-if $diff_cmd tests/data/ffserver.regression "$1" ; then
+if diff -u tests/data/ffserver.regression "$1" ; then
echo
echo Server regression test succeeded.
exit 0