From: Joey Schulze Date: Thu, 30 Aug 2001 14:03:17 +0000 (+0000) Subject: Initial files, copied, partially adjusted already X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fluonnotar.infodrom.org;a=commitdiff_plain;h=9ed10ed66d3c1503582021e7dd4240126bb1d67d Initial files, copied, partially adjusted already --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..60295cf --- /dev/null +++ b/Makefile @@ -0,0 +1,48 @@ +hostname=$(shell hostname) + +ifeq ($(hostname),finlandia) +DEST = $(HOME)/public_html/luonnotar +else +ifeq ($(hostname),luonnotar) +DEST = /var/www/luonnotar.infodrom.org +endif +endif + + +TEST = $(HOME)/public_html/luonnotar +#TEST = /var/lib/webspace/www.infodrom.ffis.de/new + +FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp-ffffff.gif" --exclude "*imgdot-1x1-transp.gif" --include "*/" +FILES+= --include "*.jpg" --include "*.html" --include "*.shtml" --include "*.php3" --include "*.gif" +FILES+= --include "*.png" +FILES+= --exclude "*" + +build: + cd src && make all + +test: + false + test -d $(TEST) || mkdir $(TEST) + rsync -lptr $(FILES) src/ $(TEST)/ +# cd src && for f in *.html; do cp $$f $(TEST)/$$f; done + +fix: +# for f in src/index.*.php3; do \ +# sed '1,/width="40"/ s/width="40"/width="250"/' < $$f > tmp; \ +# mv -f tmp $$f; \ +# sed '1,/width="40"/ s/width="40"/width="400"/' < $$f > tmp; \ +# mv -f tmp $$f; \ +# done + +install: fix + test -d $(DEST) || mkdir $(DEST) + rsync -lptr $(FILES) src/ $(DEST)/ +# cd src && for f in *.html; do cp $$f $(DEST)/$$f; done + +clean: + -rm -f `find -name '*~'` `find -name '.?*.swp'` + -cd src && make clean + -cd Styles && make clean + +depend: + cd src && make rdepend diff --git a/Styles/luonnotar.style b/Styles/luonnotar.style new file mode 100644 index 0000000..dd37688 --- /dev/null +++ b/Styles/luonnotar.style @@ -0,0 +1,96 @@ +# ========== Abstand berechnen ========== +# in ePerl: $root_prefix +# in WML: +<: + $root_prefix = ""; + $root_prefix =~ s/^.*src\/?(.*)$/$1/; + @foo = split (/\//, $root_prefix); + $root_prefix = "../"x($#foo+1); +:> +> + <: print "$root_prefix"; :> + "<: $root_var = \"\"; :>" +> + + +0000ff + + + + + + + +# Default: no title +# +# Reminder to self: "Joey's Infopool" is in the menu bar already +# +# > +# > + + + +<get-var title> + + + + + +# Prelimnary Menu, somebody will have to beautify it later +# +> + + + + + +
+>[ +#Internet +#Müll +#LUGO +#Linux +Debian +>| +Vorträge +>] +Joey's Infopool
+ +

[DEL: +Sorry, still unfinished rebuild of /~joey/. +:DEL] + + + + + + + +
> + +#include "submenu.inc" + + gifs/imgdot-1x1-transp.gif width=3 height=0 alt=""> + + +

+> + +%body + +
+ +# © = © +


© Joey, <: +@months = + ("Dummy", "Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"); + +"" =~ /^(\d+)-(\d+)-(\d+)\s/; + +printf "Last modified: %d. %s %d", $3, $months[$2], $1; +:>
+ + + + +
diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..62d505b --- /dev/null +++ b/src/Makefile @@ -0,0 +1,41 @@ +WML_FILES = $(wildcard *.wml) +FILES = $(WML_FILES:%.wml=%.html) +SFILES = $(WML_FILES:%.wml=%.shtml) +PFILES = $(WML_FILES:%.wml=%.php3) + +DIRS = $(shell find . -maxdepth 1 -type d -not -name . -not -name CVS) + +ROOT_PREFIX = $(shell perl -MCwd -e '$$_ = cwd;s/^.*src\/?//;@f=split /\//;$$n=$$\#f+1;print "../"x $$n;' ) + +IFLAGS = -I. -I$(ROOT_PREFIX)../Styles + +.SUFFIXES: .wml .html + +.wml.html: + /usr/bin/wml -n $(IFLAGS) $*.wml| sed 's:"\([a-zA-Z0-9_\.-]*\.\)\?imgdot-1x1-transp\(-ffffff\)\?\.gif":"$(ROOT_PREFIX)gifs/imgdot-1x1-transp.gif":' > $*.html + $(ROOT_PREFIX)../bin/fixsuffix $*.html + +all: $(FILES) + test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make all); fi; done + +dir: $(FILES) + +clean: + rm -f $(FILES) $(SFILES) $(PFILES) .depend *.imgdot-1x1-transp.gif imgdot-1x1-transp.gif + test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make clean); fi; done + test -z "$(ROOT_PREFIX)" || rm -f Makefile + +install: + cd $(ROOT_PREFIX).. && make install + +test: + cd $(ROOT_PREFIX).. && make test + +depend .depend: + $(ROOT_PREFIX)../bin/wmldepend.sh $(IFLAGS) $(WML_FILES) > .depend + +rdepend: + make depend + test -z "$(DIRS)" || for d in "" $(DIRS); do if [ -n "$$d" ]; then (cp Makefile $$d && cd $$d && make rdepend); fi; done + +include .depend diff --git a/src/submenu.inc b/src/submenu.inc new file mode 100644 index 0000000..e69de29