#!/bin/sh
#
# Make sure the version in configure.in matches the one in the changelog
#
perl -pi -e "s|AM_INIT_AUTOMAKE\(kvirc, .*\)|AM_INIT_AUTOMAKE(kvirc3, .*\)|" configure.in
#
# Change the name of libkvicore since it would otherwise conflict with
# kvirc
#
find `pwd` -type f -name Makefile.am -print0 | xargs -r0 perl -pi -e "s,-lkvicore ,-lkvicore3 ,g"
find `pwd` -type f -name Makefile.am -print0 | xargs -r0 perl -pi -e "s,-lkvicore$$,-lkvicore3,"
perl -pi -e "s,libkvicore(.la),libkvicore3\1,g" `pwd`/src/kvilib/core/Makefile.am
#
# Fix the location of these scripts because we have renamed them in
# order to be able to install both kvirc and kvirc3
#
perl -pi -e "s,run kvi_run_netscape.sh,run kvi3_run_netscape.sh," `pwd`/src/kvirc/kernel/kvi_options.cpp
perl -pi -e "s,run kvi_search_help.sh,run kvi3_search_help.sh,"   `pwd`/src/modules/help/helpwidget.cpp

