Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
executable file
·
17 lines (15 loc) · 359 Bytes

updaterev.sh

File metadata and controls

executable file
·
17 lines (15 loc) · 359 Bytes
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Generate a header file with the current source revision
cd `dirname $0`
srcdir=..
header=$srcdir/include/SDL_revision.h
rev=`sh showrev.sh`
if [ "$rev" != "" ]; then
echo "#define SDL_REVISION $rev" >$header.new
if diff $header $header.new >/dev/null 2>&1; then
rm $header.new
else
mv $header.new $header
fi
fi