#! /bin/sh

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir

echo "Running autoconf..."
autoconf || exit 1
echo "Running autoheader..."
autoheader || exit 1
echo "Updating COPYING version..."
version=`sed -n /AC_INIT\(/,/\)/p configure.ac | tr -d '\n ' | cut -d, -f2`
sed -e 's/^Open-MX: .*/Open-MX'${version}'/' -i COPYING
echo "Updating open-mx.spec version..."
sed -e 's/^Version: .*/Version: '${version}'/' -i open-mx.spec

cd $ORIGDIR || exit $?

#! /bin/sh

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

ORIGDIR=`pwd`
cd $srcdir

echo "Running autoconf..."
autoconf || exit 1
echo "Running autoheader..."
autoheader || exit 1
echo "Updating COPYING version..."
version=`sed -n /AC_INIT\(/,/\)/p configure.ac | tr -d '\n ' | cut -d, -f2`
sed -e 's/^Open-MX .*/Open-MX '${version}'/' -i COPYING
echo "Updating open-mx.spec version..."
sed -e 's/^Version: .*/Version: '${version}'/' -i open-mx.spec

cd $ORIGDIR || exit $?

Fix typos in previous commit
Fix typos in previous commit

git-svn-id: 29c1264a5cf5e3532df57b06678e7347571c1a3c@2887 f1ba3bf5-cb5c-402b-92a9-7c6bdc83a356
