Permalink
Browse files

initial git repo

  • Loading branch information...
1 parent 4a3c02b commit c7b837b98fc4e0c2a7376042dcdafa85f041febe Anastasia Gornostaeva committed May 20, 2009
Showing with 3 additions and 315 deletions.
  1. +0 −222 Makefile
  2. +0 −29 Makefile.conf
  3. +2 −0 _tags
  4. +0 −12 fcgi/Makefile
  5. +0 −18 lang/Makefile
  6. +1 −0 sulci.ml
  7. +0 −19 tlds/Makefile
  8. +0 −15 utils/wtf/Makefile
View
@@ -1,222 +0,0 @@
-OCAMLMAKEFILE = ../OCamlMakefile
-
-include ../Makefile.global
-
-VERSION=0.6-alpha-20090127
-
-include Makefile.conf
-
-SOURCES = version.ml config.ml common.ml types.ml lang.ml hooks.ml iq.ml
-
-SUBDIRS = lang
-
-ifeq ($(PLUGIN_ADMIN),yes)
- SOURCES1 += plugin_admin.ml
-endif
-ifeq ($(PLUGIN_GOOGLE),yes)
- SOURCES1 += plugin_google.ml
- DEHTML = yes
- HTTP_SUCK = yes
-endif
-ifeq ($(PLUGIN_GOOGLE_TRANSLATE),yes)
- SOURCES1 += plugin_google_translate.ml
- HTTP_SUCK = yes
-endif
-ifeq ($(PLUGIN_CALC),yes)
- SOURCES1 += math.ml pcalc.mly pcalc_lexer.mll icalc.mly icalc_ulex.ml plugin_calc.ml
-endif
-ifeq ($(PLUGIN_MUELLER),yes)
- SOURCES1 += plugin_mueller.ml
- NETSTRING = yes
-endif
-ifeq ($(PLUGIN_PING),yes)
- SOURCES1 += plugin_ping.ml
-endif
-ifeq ($(PLUGIN_USERINFO),yes)
- SOURCES1 += plugin_userinfo.ml
- NETSTRING = yes
-endif
-ifeq ($(PLUGIN_MISC),yes)
- SOURCES1 += plugin_misc.ml
-endif
-ifeq ($(PLUGIN_DICT),yes)
- SOURCES1 += plugin_dict.ml
-endif
-ifeq ($(PLUGIN_WEATHER),yes)
- SOURCES1 += plugin_weather.ml
- HTTP_SUCK = yes
-endif
-ifeq ($(PLUGIN_GLOBALSTATS),yes)
- SOURCES1 += plugin_globalstats.ml
-endif
-ifeq ($(PLUGIN_CURRENCY),yes)
- SOURCES1 += plugin_currency.ml
- XMLSTRING_NETSTRING = yes
- HTTP_SUCK = yes
-endif
-ifeq ($(PLUGIN_TLD),yes)
- SOURCES1 += plugin_tld.ml
- DBM_LIB = yes
- SUBDIRS += tlds
-endif
-ifeq ($(PLUGIN_TRANSLATE),yes)
- SOURCES1 += plugin_translate.ml
- HTTP_SUCK = yes
-endif
-ifeq ($(PLUGIN_VOCABULARY),yes)
- SOURCES1 += plugin_vocabulary.ml
- SQLITE = yes
-endif
-ifeq ($(PLUGIN_VCARD),yes)
- SOURCES1 += plugin_vcard.ml
-endif
-ifeq ($(PLUGIN_XMLRPC),yes)
- SOURCES1 += plugin_xmlrpc.ml
-endif
-ifeq ($(PLUGIN_HOSTIP),yes)
- SOURCES1 += plugin_hostip.ml
- HTTP_SUCK = yes
-endif
-ifeq ($(PLUGIN_1APRIL),yes)
- SOURCES1 += plugin_1april.ml
-endif
-ifeq ($(PLUGIN_YANDEX),yes)
- SOURCES1 += plugin_yandex.ml
- DEHTML = yes
- HTTP_SUCK = yes
-endif
-
-ifeq ($(MUC),yes)
- SOURCES1 += muc_types.ml find_url.ml muc_log.ml muc.ml
- SQLITE = yes
-
- ifeq ($(PLUGIN_ADMIN),yes)
- SOURCES1 += plugin_admin_muc.ml
- endif
-
- ifeq ($(PLUGIN_CERBERUS),yes)
- SOURCES1 += plugin_cerberus.ml
- endif
-
- ifeq ($(PLUGIN_MARKOV),yes)
- SOURCES1 += plugin_markov.ml
- SQLITE = yes
- endif
-
- ifeq ($(PLUGIN_ROULETTE),yes)
- SOURCES1 += plugin_roulette.ml
- endif
-
- ifeq ($(PLUGIN_SEEN),yes)
- SOURCES1 += plugin_seen.ml
- SQLITE = yes
- endif
-
- ifeq ($(PLUGIN_TALKERS),yes)
- SOURCES1 += plugin_talkers.ml
- SQLITE = yes
- endif
-
- ifeq ($(PLUGIN_VOCABULARY),yes)
- SOURCES1 += plugin_vocabulary_muc.ml
- SQLITE = yes
- endif
-
- ifeq ($(PLUGIN_USERINFO),yes)
- SOURCES1 += plugin_userinfo_muc.ml
- endif
-endif
-
-LANGPACKS = lang/ru_time.ml lang/en_time.ml lang/es_time.ml
-
-ifdef HTTP_SUCK
- SOURCES += http_suck.ml
- NETCLIENT = yes
-endif
-
-THREADS = yes
-
-PACKS = ulex unix xmpp logger xmlstring strftime scheduler pcre
-
-ifdef XMLSTRING_NETSTRING
- NETSTRING = yes
-endif
-ifdef NETSTRING
- PACKS += netstring
-endif
-ifdef NETCLIENT
- PACKS += netclient
-endif
-ifdef DBM_LIB
- PACKS += dbm
-endif
-ifdef DEHTML
- PACKS += dehtml
-endif
-ifdef XMLSTRING_NETSTRING
- PACKS += xmlstring_netstring
-endif
-ifeq ($(SQLITE), yes)
- SOURCES += sqlite_util.ml
- PACKS += sqlite3
-endif
-
-SOURCES += $(SOURCES1) $(LANGPACKS) sulci.ml
-
-OCAMLDEP = ocamldep -package ulex -syntax camlp4o
-OCAMLFLAGS = -syntax camlp4o
-
-RESULT = sulci
-
-.PHONY: subdirs $(SUBDIRS)
-
-include ../Makefile.global
-
-all: version.ml nc subdirs
-
-version.ml: version.ml.src
- sed 's/VERSION/$(VERSION)/' version.ml.src > version.ml
-
-subdirs: $(SUBDIRS)
-
-$(SUBDIRS):
- $(MAKE) -C $@
-
-SDIR=/tmp/sulci-$(VERSION)
-LIB_PROJECTS = Makefile.inc xmpp xml xmlstring xmlstring_netstring dehtml cryptokit scheduler strftime
-
-tarball::
- rm -rf $(SDIR)
- mkdir $(SDIR)
- cp -Rp ../packages $(SDIR)
- mkdir $(SDIR)/sulci
- cp *.ml *.mll *.mly Makefile Makefile.conf $(SDIR)/sulci
- cp -Rp tlds fcgi lang utils $(SDIR)/sulci
- mkdir $(SDIR)/libs
- for i in $(LIB_PROJECTS); do \
- cp -Rp ../libs/$$i $(SDIR)/libs/; \
- done
- mkdir $(SDIR)/docs
- cp -Rp ../doc/sulci $(SDIR)/docs/
- cp README $(SDIR)/
- cp ../OCamlMakefile $(SDIR)
- cp ../misc/Makefile.sulci $(SDIR)/Makefile
- cp ../COPYING $(SDIR)/
- cp ../ChangeLog $(SDIR)/
- find -d $(SDIR) -name ".svn" -print0 | xargs -0 -- rm -rf
- find $(SDIR) -name "*~" -print0 | xargs -0 -- rm -rf
- tar jcf sulci-$(VERSION).tar.bz2 -C /tmp sulci-$(VERSION)
- tar zcf sulci-$(VERSION).tar.gz -C /tmp sulci-$(VERSION)
-
-include $(OCAMLMAKEFILE)
-
-.PHONY: clean
-clean::
- rm -f version.ml
- rm -f $(TARGETS) $(TRASH)
- rm -rf $(BCDIDIR) $(NCDIDIR) $(MLDEPDIR)
- for dir in $(SUBDIRS); do \
- $(MAKE) -C $$dir clean; \
- done
-
-
View
@@ -1,29 +0,0 @@
-#To turn something off, you *MUST* comment it out by #
-
-MUC=yes
-PLUGIN_ADMIN=yes
-PLUGIN_CALC=yes
-PLUGIN_CURRENCY=yes
-PLUGIN_DICT=yes
-PLUGIN_GLOBALSTATS=yes
-PLUGIN_GOOGLE=yes
-PLUGIN_YANDEX=yes
-PLUGIN_MARKOV=yes
-PLUGIN_MISC=yes
-PLUGIN_MUELLER=yes
-PLUGIN_PING=yes
-PLUGIN_ROULETTE=yes
-PLUGIN_TLD=yes
-PLUGIN_USERINFO=yes
-PLUGIN_VOCABULARY=yes
-PLUGIN_WEATHER=yes
-PLUGIN_SEEN=yes
-PLUGIN_TALKERS=yes
-PLUGIN_CERBERUS=yes
-PLUGIN_TRANSLATE=yes
-PLUGIN_VSEARCH=yes
-PLUGIN_VCARD=yes
-#PLUGIN_XMLRPC=yes
-PLUGIN_HOSTIP=yes
-#PLUGIN_1APRIL=yes
-PLUGIN_GOOGLE_TRANSLATE=yes
View
@@ -8,6 +8,8 @@
<sqlite_util.ml>: use_sqlite3
<*_ulex.ml>: camlp4o, use_ulex.syntax, use_ulex
+<muc.ml>: use_sqlite3
+<plugin_brainfuck.ml>: thread
<plugin_calc.ml>: use_ulex
<plugin_cerberus.ml>: camlp4o, use_ulex.syntax, use_ulex
<plugin_dict.ml>: thread
View
@@ -1,12 +0,0 @@
-OCAMLMAKEFILE = ../../OCamlMakefile
-
-SOURCES = sulci_vsearch.ml
-PACKS = cgi ulex unix str
-INCDIRS = ../../libs/xml
-OCAMLLDFLAGS = xml.cmxa -linkpkg
-RESULT = sulci_vsearch.fcgi
-
-all: nc
-
-include $(OCAMLMAKEFILE)
-
View
@@ -1,18 +0,0 @@
-OCAMLMAKEFILE = ../../OCamlMakefile
-
-SOURCES = langcompile.ml
-INCDIRS =
-OCAMLLDFLAGS =
-OCAMLDEP =
-RESULT = langcompile
-TRASH = *.htbl
-
-all: nc langmsgs
-
-langmsgs: $(patsubst %.msg,%.htbl ,$(wildcard *.msg))
-%.htbl: %.msg
- ./langcompile import $(basename $@) $<
-
-
-include $(OCAMLMAKEFILE)
-
View
@@ -8,6 +8,7 @@ open Types
open Config
open Common
open Hooks
+open Lang
let _ =
let server = try
View
@@ -1,19 +0,0 @@
-OCAMLMAKEFILE = ../../OCamlMakefile
-
-SOURCES = createtlds.ml
-PACKS = dbm
-INCDIRS =
-OCAMLLDFLAGS =
-OCAMLFLAGS =
-OCAMLDEP =
-RESULT = createtlds
-TRASH = tlds.db tlds.dir tlds.pag
-
-all: nc tldsdb
-
-tldsdb:
- rm -rf *.db *.dir *.pat
- ./createtlds tlds
-
-include $(OCAMLMAKEFILE)
-
View
@@ -1,15 +0,0 @@
-OCAMLMAKEFILE = ../../../OCamlMakefile
-
-SOURCES = wtf_convert.ml
-PACKS = dbm unix
-INCDIRS = ../../../packages/ocaml-sqlite-0.3.5 ../../../libs/sqlite_util
-OCAMLLDFLAGS = sqlite.cmxa sqlite_util.cmxa
-OCAMLFLAGS =
-OCAMLDEP =
-USE_CAMLP4 =
-RESULT = wtf_convert
-
-all: nc
-
-include $(OCAMLMAKEFILE)
-

0 comments on commit c7b837b

Please sign in to comment.