]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Use "${docdir}/Commands.txt" as help text file bug145-ProvideHelp
authorAlexander Barton <alex@barton.de>
Tue, 1 Jan 2013 18:25:06 +0000 (19:25 +0100)
committerAlexander Barton <alex@barton.de>
Tue, 1 Jan 2013 18:25:06 +0000 (19:25 +0100)
configure.ng
contrib/MacOSX/config.h
doc/Makefile.am
doc/sample-ngircd.conf.tmpl
src/ngircd/conf.c
src/ngircd/defines.h

index 84e27508c793721cade924c8ee25f743affbddcd..732e55ee01388280e2e858a86b686dee0826dbb4 100644 (file)
@@ -1,6 +1,6 @@
 #
 # ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors
+# Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -110,7 +110,7 @@ esac
 # Add additional CFLAGS, eventually specified on the command line:
 test -n "$CFLAGS_ADD" && CFLAGS="$CFLAGS $CFLAGS_ADD"
 
-CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"'"
+CFLAGS="$CFLAGS -DSYSCONFDIR='\"\$(sysconfdir)\"' -DDOCDIR='\"\$(docdir)\"'"
 
 # -- Headers --
 
index 6da74962c5551f56c32a456f3ecd7aace23d6998..f4838276ecfddcb8bccd5a42b7fb1fc410d64a5d 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -17,6 +17,7 @@
 #define VERSION "??("__DATE__")"
 #endif
 #define SYSCONFDIR "/etc/ngircd"
+#define DOCDIR "/usr/share/doc/ngircd"
 
 #ifndef TARGET_VENDOR
 #define TARGET_VENDOR "apple"
index eb6fa93778927f9760c3a7bcad07f2489bbea2fb..04f74b6059acd132336f5527477d533297c6989a 100644 (file)
@@ -1,6 +1,6 @@
 #
 # ngIRCd -- The Next Generation IRC Daemon
-# Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors
+# Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -12,6 +12,7 @@
 .tmpl:
        $(AM_V_GEN)sed \
            -e "s@:ETCDIR:@${sysconfdir}@" \
+           -e "s@:DOCDIR:@${docdir}@" \
            <$< >$@
 
 SUFFIXES = .tmpl
index 3f80a9f9d7e675bc400ad4ea8184e2cd126db08a..1c3998ad61368fca9448013206c2cd35e5187779 100644 (file)
@@ -35,7 +35,7 @@
 
        # Text file which contains the ngIRCd help text. This file is required
        # to display help texts when using the "HELP <cmd>" command.
-       ;HelpFile = :ETCDIR:/ngircd.help
+       ;HelpFile = :DOCDIR:/Commands.txt
 
        # Info text of the server. This will be shown by WHOIS and
        # LINKS requests for example.
index fa1bfba1da4d0872d39e016da6aa71982174216d..d5a28bd7bfbe25ab3b8268781236edfe663954f2 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2012 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -706,7 +706,7 @@ Set_Defaults(bool InitServers)
        array_free(&Conf_Helptext);
        strlcpy(Conf_MotdFile, SYSCONFDIR, sizeof(Conf_MotdFile));
        strlcat(Conf_MotdFile, MOTD_FILE, sizeof(Conf_MotdFile));
-       strlcpy(Conf_HelpFile, SYSCONFDIR, sizeof(Conf_HelpFile));
+       strlcpy(Conf_HelpFile, DOCDIR, sizeof(Conf_HelpFile));
        strlcat(Conf_HelpFile, HELP_FILE, sizeof(Conf_HelpFile));
        strcpy(Conf_ServerPwd, "");
        strlcpy(Conf_PidFile, PID_FILE, sizeof(Conf_PidFile));
index 28a260b86024acabba0530eb79d732ab965d5a56..3850b5810a0c8ad67e379339207bfe45ada45b97 100644 (file)
@@ -78,7 +78,7 @@
 #define MOTD_FILE "/ngircd.motd"
 
 /** Name of the help file. */
-#define HELP_FILE "/ngircd.help"
+#define HELP_FILE "/Commands.txt"
 
 /** Default chroot() directory. */
 #define CHROOT_DIR ""