forked from Mirrors/freeswitch
882c00d615
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2896 d0543943-73ff-0310-b7d9-9358b9ac24b2
28 lines
597 B
Bash
Executable File
28 lines
597 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -f .noversion ] ; then
|
|
exit
|
|
fi
|
|
|
|
if eval test x${1} = xforce ; then
|
|
rm -f .version
|
|
fi
|
|
|
|
force=0
|
|
version=`svnversion . -n || echo hacked`
|
|
oldversion=`cat .version 2>/dev/null || echo "0"`
|
|
grep "@SVN_VERSION@" src/include/switch_version.h && force=1
|
|
|
|
if [ $oldversion != $version ] || [ $force = 1 ] ; then
|
|
cat src/include/switch_version.h.in | sed "s/@SVN_VERSION@/$version/g" > src/include/switch_version.h
|
|
echo $version > .version
|
|
if [ -z "$MAKE" ] ; then
|
|
make=`which gmake 2>/dev/null`
|
|
if [ -z "$MAKE" ] ; then
|
|
make=make
|
|
fi
|
|
fi
|
|
|
|
$MAKE modclean
|
|
fi
|