summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-16 22:42:36 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-16 22:42:36 +0000
commit3841c4b04a96389a4661535d12d5215a621d8736 (patch)
tree62098e63cc622d9889a9ed205a1c4487c8c20c84
parent558a44bf47370b68b14d0837bfae13c651ecf5c4 (diff)
Attempt to revert r11734
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11735 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--.Makefile.inc6
-rw-r--r--make/bsd-real.mk5
-rwxr-xr-xmake/calcdep.pl2
-rw-r--r--make/gnu-real.mk7
-rw-r--r--src/commands/cmd_admin.cpp (renamed from src/modules/cmd_admin.cpp)0
-rw-r--r--src/commands/cmd_away.cpp (renamed from src/modules/cmd_away.cpp)0
-rw-r--r--src/commands/cmd_clearcache.cpp (renamed from src/modules/cmd_clearcache.cpp)0
-rw-r--r--src/commands/cmd_commands.cpp (renamed from src/modules/cmd_commands.cpp)0
-rw-r--r--src/commands/cmd_connect.cpp (renamed from src/modules/cmd_connect.cpp)0
-rw-r--r--src/commands/cmd_die.cpp (renamed from src/modules/cmd_die.cpp)0
-rw-r--r--src/commands/cmd_eline.cpp (renamed from src/modules/cmd_eline.cpp)0
-rw-r--r--src/commands/cmd_gline.cpp (renamed from src/modules/cmd_gline.cpp)0
-rw-r--r--src/commands/cmd_info.cpp (renamed from src/modules/cmd_info.cpp)0
-rw-r--r--src/commands/cmd_invite.cpp (renamed from src/modules/cmd_invite.cpp)0
-rw-r--r--src/commands/cmd_ison.cpp (renamed from src/modules/cmd_ison.cpp)0
-rw-r--r--src/commands/cmd_join.cpp (renamed from src/modules/cmd_join.cpp)0
-rw-r--r--src/commands/cmd_kick.cpp (renamed from src/modules/cmd_kick.cpp)0
-rw-r--r--src/commands/cmd_kill.cpp (renamed from src/modules/cmd_kill.cpp)0
-rw-r--r--src/commands/cmd_kline.cpp (renamed from src/modules/cmd_kline.cpp)0
-rw-r--r--src/commands/cmd_links.cpp (renamed from src/modules/cmd_links.cpp)0
-rw-r--r--src/commands/cmd_list.cpp (renamed from src/modules/cmd_list.cpp)0
-rw-r--r--src/commands/cmd_loadmodule.cpp (renamed from src/modules/cmd_loadmodule.cpp)0
-rw-r--r--src/commands/cmd_lusers.cpp (renamed from src/modules/cmd_lusers.cpp)0
-rw-r--r--src/commands/cmd_map.cpp (renamed from src/modules/cmd_map.cpp)0
-rw-r--r--src/commands/cmd_mode.cpp (renamed from src/modules/cmd_mode.cpp)0
-rw-r--r--src/commands/cmd_modules.cpp (renamed from src/modules/cmd_modules.cpp)0
-rw-r--r--src/commands/cmd_motd.cpp (renamed from src/modules/cmd_motd.cpp)0
-rw-r--r--src/commands/cmd_names.cpp (renamed from src/modules/cmd_names.cpp)0
-rw-r--r--src/commands/cmd_nick.cpp (renamed from src/modules/cmd_nick.cpp)0
-rw-r--r--src/commands/cmd_notice.cpp (renamed from src/modules/cmd_notice.cpp)0
-rw-r--r--src/commands/cmd_oper.cpp (renamed from src/modules/cmd_oper.cpp)0
-rw-r--r--src/commands/cmd_part.cpp (renamed from src/modules/cmd_part.cpp)0
-rw-r--r--src/commands/cmd_pass.cpp (renamed from src/modules/cmd_pass.cpp)0
-rw-r--r--src/commands/cmd_ping.cpp (renamed from src/modules/cmd_ping.cpp)0
-rw-r--r--src/commands/cmd_pong.cpp (renamed from src/modules/cmd_pong.cpp)0
-rw-r--r--src/commands/cmd_privmsg.cpp (renamed from src/modules/cmd_privmsg.cpp)0
-rw-r--r--src/commands/cmd_qline.cpp (renamed from src/modules/cmd_qline.cpp)0
-rw-r--r--src/commands/cmd_quit.cpp (renamed from src/modules/cmd_quit.cpp)0
-rw-r--r--src/commands/cmd_rehash.cpp (renamed from src/modules/cmd_rehash.cpp)0
-rw-r--r--src/commands/cmd_reloadmodule.cpp (renamed from src/modules/cmd_reloadmodule.cpp)0
-rw-r--r--src/commands/cmd_restart.cpp (renamed from src/modules/cmd_restart.cpp)0
-rw-r--r--src/commands/cmd_rules.cpp (renamed from src/modules/cmd_rules.cpp)0
-rw-r--r--src/commands/cmd_server.cpp (renamed from src/modules/cmd_server.cpp)0
-rw-r--r--src/commands/cmd_squit.cpp (renamed from src/modules/cmd_squit.cpp)0
-rw-r--r--src/commands/cmd_stats.cpp (renamed from src/modules/cmd_stats.cpp)0
-rw-r--r--src/commands/cmd_time.cpp (renamed from src/modules/cmd_time.cpp)0
-rw-r--r--src/commands/cmd_topic.cpp (renamed from src/modules/cmd_topic.cpp)0
-rw-r--r--src/commands/cmd_unloadmodule.cpp (renamed from src/modules/cmd_unloadmodule.cpp)0
-rw-r--r--src/commands/cmd_user.cpp (renamed from src/modules/cmd_user.cpp)0
-rw-r--r--src/commands/cmd_userhost.cpp (renamed from src/modules/cmd_userhost.cpp)0
-rw-r--r--src/commands/cmd_version.cpp (renamed from src/modules/cmd_version.cpp)0
-rw-r--r--src/commands/cmd_wallops.cpp (renamed from src/modules/cmd_wallops.cpp)0
-rw-r--r--src/commands/cmd_who.cpp (renamed from src/modules/cmd_who.cpp)0
-rw-r--r--src/commands/cmd_whois.cpp (renamed from src/modules/cmd_whois.cpp)0
-rw-r--r--src/commands/cmd_whowas.cpp (renamed from src/modules/cmd_whowas.cpp)0
-rw-r--r--src/commands/cmd_zline.cpp (renamed from src/modules/cmd_zline.cpp)0
56 files changed, 14 insertions, 6 deletions
diff --git a/.Makefile.inc b/.Makefile.inc
index fd30cbb08..ebe4391b3 100644
--- a/.Makefile.inc
+++ b/.Makefile.inc
@@ -145,6 +145,7 @@ install: target@EXTRA_DIR@
@-install -d -m $(INSTMODE) $(BINPATH)
@-install -d -m $(INSTMODE) $(CONPATH)
@-install -d -m $(INSTMODE) $(MODPATH)
+ -install -m $(INSTMODE) src/commands/*.so $(MODPATH)
-install -m $(INSTMODE) src/modules/*.so $(MODPATH)
-install -m $(INSTMODE) @STARTSCRIPT@ $(@DESTINATION@) 2>/dev/null
-install -m $(INSTMODE) src/inspircd $(BINPATH)
@@ -162,7 +163,7 @@ install: target@EXTRA_DIR@
clean:
@echo Cleaning...
@rm -f src/inspircd src/modes/modeclasses.a
- @rm -f src/*.so src/modules/*.so src/modules/*/*.so
+ @rm -f src/*.so src/modules/*.so src/commands/*.so src/modules/*/*.so
@rm -f src/*.o src/*/*.o src/modules/*/*.o
@rm -f src/.*.d src/*/.*.d src/modules/*/.*.d
@echo Completed.
@@ -180,6 +181,7 @@ launchd_dir:
configureclean:
rm -f .config.cache
rm -f src/modules/Makefile
+ rm -f src/commands/Makefile
rm -f src/Makefile
-rm -f Makefile
rm -f BSDmakefile
@@ -209,7 +211,7 @@ help:
@echo ' M=m_foo Builds a single module'
@echo ' T=target Builds a user-specified target'
@echo ' Target can be a file path relative to src/, or one of:'
- @echo ' inspircd modules'
+ @echo ' inspircd commands modules'
@echo ' Multiple targets may be separated by a space'
@echo ''
@echo ' clean Cleans object files produced by the compile'
diff --git a/make/bsd-real.mk b/make/bsd-real.mk
index 1ea3e2916..13cb2cce8 100644
--- a/make/bsd-real.mk
+++ b/make/bsd-real.mk
@@ -1,5 +1,6 @@
VPATH = $(SOURCEPATH)/src
CORE_TARGS != perl -e 'chdir "$$ENV{SOURCEPATH}/src"; print join " ", grep s/\.cpp/.o/, <*.cpp>, <modes/*.cpp>'
+CMD_TARGS != perl -e 'chdir "$$ENV{SOURCEPATH}/src"; print join " ", grep s/\.cpp/.so/, <commands/*.cpp>'
MOD_TARGS != perl -e 'chdir "$$ENV{SOURCEPATH}/src"; print join " ", grep s/\.cpp/.so/, <modules/*.cpp>'
MDIR_TARGS != perl -e 'chdir "$$ENV{SOURCEPATH}/src"; print join " ", grep s!/?$$!.so!, grep -d, <modules/m_*>'
@@ -7,7 +8,9 @@ CORE_TARGS += socketengines/$(SOCKETENGINE).o threadengines/threadengine_pthread
DFILES != perl $(SOURCEPATH)/make/calcdep.pl -all
-all: inspircd modules
+all: inspircd commands modules
+
+commands: $(CMD_TARGS)
modules: $(MOD_TARGS) $(MDIR_TARGS)
diff --git a/make/calcdep.pl b/make/calcdep.pl
index d8b4e292b..261b6ec18 100755
--- a/make/calcdep.pl
+++ b/make/calcdep.pl
@@ -51,7 +51,7 @@ sub dep_cpp {
my($file, $dfile) = @_;
gendep $file;
my($path,$base) = $file =~ m#^((?:.*/)?)([^/]+)\.cpp# or die "Bad file $file";
- my $ext = $path eq 'modules/' ? '.so' : '.o';
+ my $ext = $path eq 'modules/' || $path eq 'commands/' ? '.so' : '.o';
my $out = "$path$base$ext";
$dfile = "$baseout/$path.$base.d" unless defined $dfile;
diff --git a/make/gnu-real.mk b/make/gnu-real.mk
index ea9843574..338a5112d 100644
--- a/make/gnu-real.mk
+++ b/make/gnu-real.mk
@@ -1,6 +1,7 @@
SRC = $(SOURCEPATH)/src
VPATH = $(SRC)
CORE_TARGS = $(patsubst $(SRC)/%.cpp,%.o,$(wildcard $(SRC)/*.cpp $(SRC)/modes/*.cpp))
+CMD_TARGS = $(patsubst $(SRC)/%.cpp,%.so,$(wildcard $(SRC)/commands/*.cpp))
MOD_TARGS = $(patsubst $(SRC)/%.cpp,%.so,$(wildcard $(SRC)/modules/*.cpp))
CORE_TARGS += socketengines/$(SOCKETENGINE).o threadengines/threadengine_pthread.o
@@ -8,13 +9,15 @@ MOD_TARGS += $(shell perl -e 'chdir "$$ENV{SOURCEPATH}/src"; print join " ", gre
DFILES = $(shell perl $(SOURCEPATH)/make/calcdep.pl -all)
-all: inspircd modules
+all: inspircd commands modules
+
+commands: $(CMD_TARGS)
modules: $(MOD_TARGS)
inspircd: $(CORE_TARGS)
$(RUNCC) -o $@ $(CORELDFLAGS) $(LDLIBS) $^
-.PHONY: all alldep modules
+.PHONY: all alldep commands modules
-include $(DFILES)
diff --git a/src/modules/cmd_admin.cpp b/src/commands/cmd_admin.cpp
index 1f2641e67..1f2641e67 100644
--- a/src/modules/cmd_admin.cpp
+++ b/src/commands/cmd_admin.cpp
diff --git a/src/modules/cmd_away.cpp b/src/commands/cmd_away.cpp
index d93f74559..d93f74559 100644
--- a/src/modules/cmd_away.cpp
+++ b/src/commands/cmd_away.cpp
diff --git a/src/modules/cmd_clearcache.cpp b/src/commands/cmd_clearcache.cpp
index 2334e597c..2334e597c 100644
--- a/src/modules/cmd_clearcache.cpp
+++ b/src/commands/cmd_clearcache.cpp
diff --git a/src/modules/cmd_commands.cpp b/src/commands/cmd_commands.cpp
index 63b4b24fb..63b4b24fb 100644
--- a/src/modules/cmd_commands.cpp
+++ b/src/commands/cmd_commands.cpp
diff --git a/src/modules/cmd_connect.cpp b/src/commands/cmd_connect.cpp
index 65cc4bd6b..65cc4bd6b 100644
--- a/src/modules/cmd_connect.cpp
+++ b/src/commands/cmd_connect.cpp
diff --git a/src/modules/cmd_die.cpp b/src/commands/cmd_die.cpp
index 658240de8..658240de8 100644
--- a/src/modules/cmd_die.cpp
+++ b/src/commands/cmd_die.cpp
diff --git a/src/modules/cmd_eline.cpp b/src/commands/cmd_eline.cpp
index 7845fa2f1..7845fa2f1 100644
--- a/src/modules/cmd_eline.cpp
+++ b/src/commands/cmd_eline.cpp
diff --git a/src/modules/cmd_gline.cpp b/src/commands/cmd_gline.cpp
index ad3067428..ad3067428 100644
--- a/src/modules/cmd_gline.cpp
+++ b/src/commands/cmd_gline.cpp
diff --git a/src/modules/cmd_info.cpp b/src/commands/cmd_info.cpp
index f239b9f78..f239b9f78 100644
--- a/src/modules/cmd_info.cpp
+++ b/src/commands/cmd_info.cpp
diff --git a/src/modules/cmd_invite.cpp b/src/commands/cmd_invite.cpp
index 89437e252..89437e252 100644
--- a/src/modules/cmd_invite.cpp
+++ b/src/commands/cmd_invite.cpp
diff --git a/src/modules/cmd_ison.cpp b/src/commands/cmd_ison.cpp
index ca7639b58..ca7639b58 100644
--- a/src/modules/cmd_ison.cpp
+++ b/src/commands/cmd_ison.cpp
diff --git a/src/modules/cmd_join.cpp b/src/commands/cmd_join.cpp
index 73cae4746..73cae4746 100644
--- a/src/modules/cmd_join.cpp
+++ b/src/commands/cmd_join.cpp
diff --git a/src/modules/cmd_kick.cpp b/src/commands/cmd_kick.cpp
index d07d53836..d07d53836 100644
--- a/src/modules/cmd_kick.cpp
+++ b/src/commands/cmd_kick.cpp
diff --git a/src/modules/cmd_kill.cpp b/src/commands/cmd_kill.cpp
index 1001d4c8a..1001d4c8a 100644
--- a/src/modules/cmd_kill.cpp
+++ b/src/commands/cmd_kill.cpp
diff --git a/src/modules/cmd_kline.cpp b/src/commands/cmd_kline.cpp
index 3ec2461b4..3ec2461b4 100644
--- a/src/modules/cmd_kline.cpp
+++ b/src/commands/cmd_kline.cpp
diff --git a/src/modules/cmd_links.cpp b/src/commands/cmd_links.cpp
index d722fa65d..d722fa65d 100644
--- a/src/modules/cmd_links.cpp
+++ b/src/commands/cmd_links.cpp
diff --git a/src/modules/cmd_list.cpp b/src/commands/cmd_list.cpp
index b7023072b..b7023072b 100644
--- a/src/modules/cmd_list.cpp
+++ b/src/commands/cmd_list.cpp
diff --git a/src/modules/cmd_loadmodule.cpp b/src/commands/cmd_loadmodule.cpp
index d4cda20ab..d4cda20ab 100644
--- a/src/modules/cmd_loadmodule.cpp
+++ b/src/commands/cmd_loadmodule.cpp
diff --git a/src/modules/cmd_lusers.cpp b/src/commands/cmd_lusers.cpp
index a79466ae4..a79466ae4 100644
--- a/src/modules/cmd_lusers.cpp
+++ b/src/commands/cmd_lusers.cpp
diff --git a/src/modules/cmd_map.cpp b/src/commands/cmd_map.cpp
index edc8aa124..edc8aa124 100644
--- a/src/modules/cmd_map.cpp
+++ b/src/commands/cmd_map.cpp
diff --git a/src/modules/cmd_mode.cpp b/src/commands/cmd_mode.cpp
index 3cfc58263..3cfc58263 100644
--- a/src/modules/cmd_mode.cpp
+++ b/src/commands/cmd_mode.cpp
diff --git a/src/modules/cmd_modules.cpp b/src/commands/cmd_modules.cpp
index 599eb611b..599eb611b 100644
--- a/src/modules/cmd_modules.cpp
+++ b/src/commands/cmd_modules.cpp
diff --git a/src/modules/cmd_motd.cpp b/src/commands/cmd_motd.cpp
index 0e0785e93..0e0785e93 100644
--- a/src/modules/cmd_motd.cpp
+++ b/src/commands/cmd_motd.cpp
diff --git a/src/modules/cmd_names.cpp b/src/commands/cmd_names.cpp
index 537c477c8..537c477c8 100644
--- a/src/modules/cmd_names.cpp
+++ b/src/commands/cmd_names.cpp
diff --git a/src/modules/cmd_nick.cpp b/src/commands/cmd_nick.cpp
index 99b8348ab..99b8348ab 100644
--- a/src/modules/cmd_nick.cpp
+++ b/src/commands/cmd_nick.cpp
diff --git a/src/modules/cmd_notice.cpp b/src/commands/cmd_notice.cpp
index ced17072f..ced17072f 100644
--- a/src/modules/cmd_notice.cpp
+++ b/src/commands/cmd_notice.cpp
diff --git a/src/modules/cmd_oper.cpp b/src/commands/cmd_oper.cpp
index da53d2b1a..da53d2b1a 100644
--- a/src/modules/cmd_oper.cpp
+++ b/src/commands/cmd_oper.cpp
diff --git a/src/modules/cmd_part.cpp b/src/commands/cmd_part.cpp
index e2e4e59a0..e2e4e59a0 100644
--- a/src/modules/cmd_part.cpp
+++ b/src/commands/cmd_part.cpp
diff --git a/src/modules/cmd_pass.cpp b/src/commands/cmd_pass.cpp
index 6219118ee..6219118ee 100644
--- a/src/modules/cmd_pass.cpp
+++ b/src/commands/cmd_pass.cpp
diff --git a/src/modules/cmd_ping.cpp b/src/commands/cmd_ping.cpp
index e7898921a..e7898921a 100644
--- a/src/modules/cmd_ping.cpp
+++ b/src/commands/cmd_ping.cpp
diff --git a/src/modules/cmd_pong.cpp b/src/commands/cmd_pong.cpp
index 225be147a..225be147a 100644
--- a/src/modules/cmd_pong.cpp
+++ b/src/commands/cmd_pong.cpp
diff --git a/src/modules/cmd_privmsg.cpp b/src/commands/cmd_privmsg.cpp
index 781ad8bac..781ad8bac 100644
--- a/src/modules/cmd_privmsg.cpp
+++ b/src/commands/cmd_privmsg.cpp
diff --git a/src/modules/cmd_qline.cpp b/src/commands/cmd_qline.cpp
index ffe8c5ee6..ffe8c5ee6 100644
--- a/src/modules/cmd_qline.cpp
+++ b/src/commands/cmd_qline.cpp
diff --git a/src/modules/cmd_quit.cpp b/src/commands/cmd_quit.cpp
index d041fc031..d041fc031 100644
--- a/src/modules/cmd_quit.cpp
+++ b/src/commands/cmd_quit.cpp
diff --git a/src/modules/cmd_rehash.cpp b/src/commands/cmd_rehash.cpp
index a689801aa..a689801aa 100644
--- a/src/modules/cmd_rehash.cpp
+++ b/src/commands/cmd_rehash.cpp
diff --git a/src/modules/cmd_reloadmodule.cpp b/src/commands/cmd_reloadmodule.cpp
index 3e3a3a617..3e3a3a617 100644
--- a/src/modules/cmd_reloadmodule.cpp
+++ b/src/commands/cmd_reloadmodule.cpp
diff --git a/src/modules/cmd_restart.cpp b/src/commands/cmd_restart.cpp
index e83f3f381..e83f3f381 100644
--- a/src/modules/cmd_restart.cpp
+++ b/src/commands/cmd_restart.cpp
diff --git a/src/modules/cmd_rules.cpp b/src/commands/cmd_rules.cpp
index 3cc5c15f4..3cc5c15f4 100644
--- a/src/modules/cmd_rules.cpp
+++ b/src/commands/cmd_rules.cpp
diff --git a/src/modules/cmd_server.cpp b/src/commands/cmd_server.cpp
index e5a7622b8..e5a7622b8 100644
--- a/src/modules/cmd_server.cpp
+++ b/src/commands/cmd_server.cpp
diff --git a/src/modules/cmd_squit.cpp b/src/commands/cmd_squit.cpp
index f742dd964..f742dd964 100644
--- a/src/modules/cmd_squit.cpp
+++ b/src/commands/cmd_squit.cpp
diff --git a/src/modules/cmd_stats.cpp b/src/commands/cmd_stats.cpp
index 7ffa4a93c..7ffa4a93c 100644
--- a/src/modules/cmd_stats.cpp
+++ b/src/commands/cmd_stats.cpp
diff --git a/src/modules/cmd_time.cpp b/src/commands/cmd_time.cpp
index 8ff588c2d..8ff588c2d 100644
--- a/src/modules/cmd_time.cpp
+++ b/src/commands/cmd_time.cpp
diff --git a/src/modules/cmd_topic.cpp b/src/commands/cmd_topic.cpp
index e0fa79d1c..e0fa79d1c 100644
--- a/src/modules/cmd_topic.cpp
+++ b/src/commands/cmd_topic.cpp
diff --git a/src/modules/cmd_unloadmodule.cpp b/src/commands/cmd_unloadmodule.cpp
index bdc516aac..bdc516aac 100644
--- a/src/modules/cmd_unloadmodule.cpp
+++ b/src/commands/cmd_unloadmodule.cpp
diff --git a/src/modules/cmd_user.cpp b/src/commands/cmd_user.cpp
index e2f81f33c..e2f81f33c 100644
--- a/src/modules/cmd_user.cpp
+++ b/src/commands/cmd_user.cpp
diff --git a/src/modules/cmd_userhost.cpp b/src/commands/cmd_userhost.cpp
index 2833d56ba..2833d56ba 100644
--- a/src/modules/cmd_userhost.cpp
+++ b/src/commands/cmd_userhost.cpp
diff --git a/src/modules/cmd_version.cpp b/src/commands/cmd_version.cpp
index bfe82d4d9..bfe82d4d9 100644
--- a/src/modules/cmd_version.cpp
+++ b/src/commands/cmd_version.cpp
diff --git a/src/modules/cmd_wallops.cpp b/src/commands/cmd_wallops.cpp
index 7894419c1..7894419c1 100644
--- a/src/modules/cmd_wallops.cpp
+++ b/src/commands/cmd_wallops.cpp
diff --git a/src/modules/cmd_who.cpp b/src/commands/cmd_who.cpp
index 89ca60d02..89ca60d02 100644
--- a/src/modules/cmd_who.cpp
+++ b/src/commands/cmd_who.cpp
diff --git a/src/modules/cmd_whois.cpp b/src/commands/cmd_whois.cpp
index 972b0439e..972b0439e 100644
--- a/src/modules/cmd_whois.cpp
+++ b/src/commands/cmd_whois.cpp
diff --git a/src/modules/cmd_whowas.cpp b/src/commands/cmd_whowas.cpp
index 78a7e7544..78a7e7544 100644
--- a/src/modules/cmd_whowas.cpp
+++ b/src/commands/cmd_whowas.cpp
diff --git a/src/modules/cmd_zline.cpp b/src/commands/cmd_zline.cpp
index e2cca7649..e2cca7649 100644
--- a/src/modules/cmd_zline.cpp
+++ b/src/commands/cmd_zline.cpp