Give 3.2.x users some directory hints if they try to do things the 3.2.x way.

pull/1/head
Bram Matthys 8 years ago
parent 5d64a2ff43
commit bcc95f67d6

4
configure vendored

@ -624,6 +624,7 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS
LIBOBJS
BUILDDIR
UNRLINCDIR
URL
PTHREAD_CFLAGS
@ -7987,6 +7988,9 @@ fi
UNRLINCDIR="`pwd`/include"
BUILDDIR="`pwd`"
ac_config_files="$ac_config_files Makefile src/modules/Makefile src/modules/chanmodes/Makefile src/modules/usermodes/Makefile src/modules/snomasks/Makefile src/modules/extbans/Makefile unrealircd extras/ircdcron/ircdchk extras/ircdcron/ircd.cron"
cat >confcache <<\_ACEOF

@ -784,6 +784,9 @@ CHECK_LIBCURL
UNRLINCDIR="`pwd`/include"
AC_SUBST(UNRLINCDIR)
BUILDDIR="`pwd`"
AC_SUBST(BUILDDIR)
AC_CONFIG_FILES([Makefile
src/modules/Makefile
src/modules/chanmodes/Makefile

@ -14,6 +14,18 @@ if [ "$1" = "start" ] ; then
if [ -r $PID_FILE ] ; then
mv -f $PID_FILE $PID_BACKUP
fi
# Check if ~/Unreal3.4.x/unrealircd.conf exists but the file
# ~/unrealircd/conf/unrealircd.conf does not.
# If so, then assume a user-build and give the user a nice hint...
if [ ! -f @CONFDIR@/unrealircd.conf -a -f @BUILDDIR@/unrealircd.conf ]; then
echo ""
echo "There is no unrealircd.conf in @CONFDIR@"
echo "However I did find an unrealircd.conf in @BUILDDIR@"
echo "With UnrealIRCd 3.4.x you should no longer run the IRCd from @BUILDDIR@."
echo "You should 'cd @SCRIPTDIR@' and work from there."
echo "See https://www.unrealircd.org/docs/UnrealIRCd_files_and_directories"
exit 1
fi
@BINDIR@/unrealircd
sleep 1
if [ ! -r $PID_FILE ] ; then

Loading…
Cancel
Save