Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 44 lines (40 sloc) 1.573 kb
720b0e7 @uliwitness Added licensing information to the source files.
authored
1 #
2 # make_svn_version_header.sh
3 # TalkingMoose
4 #
5 # Copyright 2004 Uli Kusterer.
6 #
7 # This software is provided 'as-is', without any express or implied
8 # warranty. In no event will the authors be held liable for any damages
9 # arising from the use of this software.
10 #
11 # Permission is granted to anyone to use this software for any purpose,
12 # including commercial applications, and to alter it and redistribute it
13 # freely, subject to the following restrictions:
14 #
15 # 1. The origin of this software must not be misrepresented; you must not
16 # claim that you wrote the original software. If you use this software
17 # in a product, an acknowledgment in the product documentation would be
18 # appreciated but is not required.
19 #
20 # 2. Altered source versions must be plainly marked as such, and must not be
21 # misrepresented as being the original software.
22 #
23 # 3. This notice may not be removed or altered from any source
24 # distribution.
25 #
26
dc5be1c Initial check-in.
uli authored
27 #
28 # Run this file as part of your build process to extract the latest
29 # revision from your Subversion working copy and create a 'svn_version.h'
30 # file defining a SVN_VERSION constant to that value.
31 #
32 # The file will be created in the current directory and the subversion
33 # revision number is extracted from the current folder's .svn/entries
34 # file.
35 #
36
37 echo -n "Finding revision in "
38 pwd
39 revnum=`/usr/bin/svnversion . | cut -f '2' -d ':' | cut -f '1' -d 'M'`
40
41 # Now write the constant declaration to the file:
42 echo "#define SVN_VERSION \"$revnum\"" > svn_version.h
43 echo "Wrote revision $revnum to svn_version.h"
Something went wrong with that request. Please try again.