4 # Written by Timm S. Mueller <tmueller at neoscientists.org>
5 # See copyright notice in COPYRIGHT
8 ###############################################################################
11 # Name of the user under which the web server is running:
14 # Group of administrators of this web site (or your own group):
17 # Default language of the planned web site:
21 ###############################################################################
34 @echo "-------------------------------------------------------------------------------"
35 @echo "help .......... This help"
37 @echo "modules ....... Build modules"
38 @echo "setup ......... Create initial site structure [LANGUAGE: $(LANGUAGE)]"
39 @echo "permissions ... Set permissions [WWWUSER: $(WWWUSER), GROUP: $(GROUP)]"
41 @echo "fastcgi-run ... Run as FastCGI external server"
42 @echo " See cgi-bin/loona_fastcgi.lua for configuration options"
44 @echo "NOTE .......... Set environment variables to complement your setup, e.g."
45 @echo " % LANGUAGE=de WWWUSER=wwwrun make help"
46 @echo " or make settings persistent by changing them in the Makefile"
53 clean install modules:
58 mkdir -p $(CONTENTDIR)
59 -cd $(CONTENTDIR) && mkdir work_$(LANGUAGE)
60 -cd $(CONTENTDIR) && ln -sn work_$(LANGUAGE) current_$(LANGUAGE)
61 mkdir -p $(VARDIR)/sessions $(VARDIR)/htmlcache
62 if test ! -f $(CONTENTDIR)/work_$(LANGUAGE)/markup; then cp README $(CONTENTDIR)/work_$(LANGUAGE)/home; fi
63 if test ! -f $(CONTENTDIR)/work_$(LANGUAGE)/copyright; then cp COPYRIGHT $(CONTENTDIR)/work_$(LANGUAGE)/copyright; fi
64 if test ! -f $(CONTENTDIR)/work_$(LANGUAGE)/markup; then cp MARKUP $(CONTENTDIR)/work_$(LANGUAGE)/markup; fi
65 if test ! -f $(CONTENTDIR)/work_$(LANGUAGE)/login; then echo -e 'INCLUDE(login)' >> $(CONTENTDIR)/work_$(LANGUAGE)/login; fi
66 if test ! -f $(CONTENTDIR)/work_$(LANGUAGE)/.sections; then echo -e '[1] = { name = "home" },\n[2] = { name = "copyright" },\n[3] = { name = "markup" },\n[4] = { name = "login", dynamic = { main = true } },' >> $(CONTENTDIR)/work_$(LANGUAGE)/.sections; fi
72 find . -type d | xargs chmod ugo+x
73 chmod ugo+x $(CGIDIR)/loona.cgi $(CGIDIR)/loona_fastcgi.lua
74 chown -R $(WWWUSER) $(VARDIR)/sessions $(VARDIR)/htmlcache
75 chown -R $(WWWUSER) $(CONTENTDIR) $(HTDIR)
76 find . -name CVS -type d | xargs -r chmod g+rw
82 -rm -f $(HTDIR)/*.html $(HTDIR)/*.html.*
90 -(a=$$(mktemp -du) && hg clone $$PWD $$a && kdiff3 $$a $$PWD; rm -rf $$a)