1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

autogen and configure fixes by Janne Kujanpaa (Bug 192)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3709 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Wouter Coekaerts 2005-02-16 16:33:51 +00:00 committed by coekie
parent 5a8b583347
commit c49b54dc2b
2 changed files with 12 additions and 12 deletions

View File

@ -10,7 +10,7 @@ if test ! -f $srcdir/irssi.cvs -a -f $srcdir/configure; then
echo echo
echo "Use ./configure instead" echo "Use ./configure instead"
echo echo
echo "This script should only be run if you got sources from CVS." echo "This script should only be run if you got sources from SVN."
echo "If you really want to do this, say:" echo "If you really want to do this, say:"
echo " touch irssi.cvs" echo " touch irssi.cvs"
exit 0 exit 0
@ -33,24 +33,24 @@ perl syntax.pl
# the TZ hack is needed. # the TZ hack is needed.
# otherwise the log will have local timezone # otherwise the log will have local timezone
SVN=svn SVN=svn
if [ -e $srcdir/ChangeLog ]; then if test -f $srcdir/ChangeLog; then
CHANGELOG_VERSION=`head -n 2 $srcdir/ChangeLog| tail -n 1 | sed -r 's/^r([0-9]+).*/\1/;t;d'` CHANGELOG_VERSION=`head -n 2 $srcdir/ChangeLog| tail -1 | sed 's/^r\([0-9]*\).*/\1/'`
fi fi
if [ -z $CHANGELOG_VERSION ]; then if test -z $CHANGELOG_VERSION; then
echo "Getting ChangeLog from svn..." echo "Getting ChangeLog from svn..."
TZ=UTC $SVN log -v > $srcdir/ChangeLog TZ=UTC $SVN log -v > $srcdir/ChangeLog
else else
SVN_VERSION=`$SVN info $srcdir | grep 'Last Changed Rev' | awk '{print $4}'` SVN_VERSION=`$SVN info $srcdir | grep 'Last Changed Rev' | awk '{print $4}'`
if [ -z SVN_VERSION ]; then if test -z SVN_VERSION; then
echo "**Error**: Couldn't get svn revision number. svn or .svn dirs missing?" echo "**Error**: Couldn't get svn revision number. svn or .svn dirs missing?"
exit 1 exit 1
fi fi
if [ $SVN_VERSION -eq $CHANGELOG_VERSION ]; then if test $SVN_VERSION -eq $CHANGELOG_VERSION; then
echo ChangeLog is already up-to-date. echo ChangeLog is already up-to-date.
else else
echo "Updating ChangeLog from version $CHANGELOG_VERSION to $SVN_VERSION..." echo "Updating ChangeLog from version $CHANGELOG_VERSION to $SVN_VERSION..."
mv $srcdir/ChangeLog $srcdir/ChangeLog.prev mv $srcdir/ChangeLog $srcdir/ChangeLog.prev
TZ=UTC $SVN log -v --incremental $srcdir -r $SVN_VERSION:$((CHANGELOG_VERSION+1)) > $srcdir/ChangeLog TZ=UTC $SVN log -v --incremental $srcdir -r $SVN_VERSION:$[CHANGELOG_VERSION+1] > $srcdir/ChangeLog
cat $srcdir/ChangeLog.prev >> $srcdir/ChangeLog cat $srcdir/ChangeLog.prev >> $srcdir/ChangeLog
fi fi
fi fi
@ -115,7 +115,7 @@ fi
if test -z "$*"; then if test -z "$*"; then
echo "**Warning**: I am going to run \`configure' with no arguments." echo "**Warning**: I am going to run \`configure' with no arguments."
echo "If you wish to pass any to it, please specify them on the" echo "If you wish to pass any to it, please specify them on the"
echo \`$0\'" command line." echo "\`$0\' command line."
echo echo
fi fi
@ -166,9 +166,9 @@ conf_flags="--enable-maintainer-mode --enable-compile-warnings" #--enable-iso-c
if test x$NOCONFIGURE = x; then if test x$NOCONFIGURE = x; then
echo Running $srcdir/configure $conf_flags "$@" ... echo Running $srcdir/configure $conf_flags "$@" ...
$srcdir/configure $conf_flags "$@" \ $srcdir/configure $conf_flags "$@" \
&& echo Now type \`make\' to compile $PKG_NAME || exit 1 && echo "Now type \`make\' to compile $PKG_NAME" || exit 1
else else
echo Skipping configure process. echo "Skipping configure process."
fi fi
# make sure perl hashes have correct length # make sure perl hashes have correct length

View File

@ -913,8 +913,8 @@ fi
dnl ** dnl **
dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME dnl ** IRSSI_VERSION_DATE and IRSSI_VERSION_TIME
dnl ** dnl **
VERSION_DATE=`head -n 2 $srcdir/ChangeLog| tail -n 1 | awk '{print $5}' | tr -d '-'` VERSION_DATE=`head -n 2 $srcdir/ChangeLog| tail -1 | awk '{print $5}' | tr -d '-'`
VERSION_TIME=`head -n 2 $srcdir/ChangeLog| tail -n 1 | awk '{print $6}' | awk -F: '{printf "%d\n", $1$2}'` VERSION_TIME=`head -n 2 $srcdir/ChangeLog| tail -1 | awk '{print $6}' | awk -F: '{printf "%d\n", $1$2}'`
AC_SUBST(VERSION_DATE) AC_SUBST(VERSION_DATE)
AC_SUBST(VERSION_TIME) AC_SUBST(VERSION_TIME)