aboutsummaryrefslogtreecommitdiffstats
path: root/svn_version.sh
blob: 82df1b99e4b8fe836de3e791a256a73e561090fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# $Id$
# $URL$


OLD_VERSION=`cat svn_version.h 2>/dev/null`

if [ -d .svn ]; then
    NEW_VERSION="#define SVN_VERSION \"`svnversion -n`\""
fi

if [ "$NEW_VERSION" != "$OLD_VERSION" ]; then
    echo $NEW_VERSION >svn_version.h
fi