3
# gensvnversion.sh - svnversion.h generator script
5
# written by Marco van den Heuvel <blackystardust68@yahoo.com>
9
# a mixed range revision with local modifications may give output like this:
11
# split only the right (highest) revision from it
12
svnrevisionnr=`echo $svnrevision | sed 's/[0-9]*:\([0-9]*\).*/\1/'`
15
echo " * svnversion.h - SVN revision defines."
17
echo " * Autogenerated by gensvnversion.sh, DO NOT EDIT !!!"
20
echo " * Marco van den Heuvel <blackystardust68@yahoo.com>"
22
echo " * This file is part of VICE, the Versatile Commodore Emulator."
23
echo " * See README for copyright notice."
25
echo " * This program is free software; you can redistribute it and/or modify"
26
echo " * it under the terms of the GNU General Public License as published by"
27
echo " * the Free Software Foundation; either version 2 of the License, or"
28
echo " * (at your option) any later version."
30
echo " * This program is distributed in the hope that it will be useful,"
31
echo " * but WITHOUT ANY WARRANTY; without even the implied warranty of"
32
echo " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
33
echo " * GNU General Public License for more details."
35
echo " * You should have received a copy of the GNU General Public License"
36
echo " * along with this program; if not, write to the Free Software"
37
echo " * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA"
38
echo " * 02111-1307 USA."
42
echo "#ifndef VICE_SVNVERSION_H"
43
echo "#define VICE_SVNVERSION_H"
45
echo "#define VICE_SVN_REV_NUMBER $svnrevisionnr"
46
echo "#define VICE_SVN_REV_STRING \"$svnrevision\""