~ubuntu-branches/ubuntu/utopic/vice/utopic-proposed

« back to all changes in this revision

Viewing changes to src/gensvnversion.sh

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2014-05-10 21:08:23 UTC
  • mfrom: (17.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20140510210823-v5aojvy1pv1sg132
Tags: 2.4.dfsg+2.4.6-1ubuntu1
Use autotools-dev to update config.{sub,guess} for new arches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
#
 
3
# gensvnversion.sh - svnversion.h generator script
 
4
#
 
5
# written by Marco van den Heuvel <blackystardust68@yahoo.com>
 
6
 
 
7
svnrevision=`$1 $2`
 
8
 
 
9
# a mixed range revision with local modifications may give output like this:
 
10
# 4123:4168MSP
 
11
# split only the right (highest) revision from it
 
12
svnrevisionnr=`echo $svnrevision | sed 's/[0-9]*:\([0-9]*\).*/\1/'`
 
13
 
 
14
echo "/*"
 
15
echo " * svnversion.h - SVN revision defines."
 
16
echo " *"
 
17
echo " * Autogenerated by gensvnversion.sh, DO NOT EDIT !!!"
 
18
echo " *"
 
19
echo " * Written by"
 
20
echo " *  Marco van den Heuvel <blackystardust68@yahoo.com>"
 
21
echo " *"
 
22
echo " * This file is part of VICE, the Versatile Commodore Emulator."
 
23
echo " * See README for copyright notice."
 
24
echo " *"
 
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."
 
29
echo " *"
 
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."
 
34
echo " *"
 
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."
 
39
echo " *"
 
40
echo " */"
 
41
echo ""
 
42
echo "#ifndef VICE_SVNVERSION_H"
 
43
echo "#define VICE_SVNVERSION_H"
 
44
echo ""
 
45
echo "#define VICE_SVN_REV_NUMBER $svnrevisionnr"
 
46
echo "#define VICE_SVN_REV_STRING \"$svnrevision\""
 
47
echo ""
 
48
echo "#endif"