freeswitch/checkversion.sh
Anthony Minessale 5e86c382d9 optimize pcre and fix autoheadache
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@387 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-01-14 18:55:20 +00:00

20 lines
380 B
Bash
Executable File

#!/bin/bash
if [ ! -z $1 ] ; then
if [ $1 = force ] ; then
rm -f .version
fi
fi
version=`svnversion . -n || echo hacked`
oldversion=`cat .version 2>/dev/null || echo "0"`
if [ $oldversion != $version ] ; then
cat src/include/switch_version.h.in | sed "s/@SVN_VERSION@/$version/g" > src/include/switch_version.h
echo $version > .version
make modclean
fi