diff --git a/Jamfile b/Jamfile deleted file mode 100644 index 879359e..0000000 --- a/Jamfile +++ /dev/null @@ -1,10 +0,0 @@ -SubDir TOP ; - -Webify index.mdwn ; - -SubInclude TOP papers ; -SubInclude TOP projects ; -SubInclude TOP poems ; -SubInclude TOP src ; -SubInclude TOP tartans ; -SubInclude TOP toys ; diff --git a/Jamrules b/Jamrules deleted file mode 100644 index dfe92c5..0000000 --- a/Jamrules +++ /dev/null @@ -1,50 +0,0 @@ -MDWNTOHTML = $(TOP)/mdwntohtml ; -DIRLIST = $(TOP)/dirlist ; -TEMPLATE = $(TOP)/template.xml ; - -rule Copy { - local tgt = [ FGristFiles $(1) ] ; - local src = [ FGristFiles $(2) ] ; - MakeLocate $(tgt) : $(LOCATE_TARGET) ; - File $(tgt) : $(src) ; - Clean clean : $(tgt) ; -} - -rule AutoIndex { - local tgt = [ FGristFiles $(1) ] ; - local head = [ FGristFiles $(2) ] ; - local src = [ FGristFiles $(3) ] ; - - MakeLocate $(tgt) : $(LOCATE_TARGET) ; - SEARCH on $(head) = $(SEARCH_SOURCE) ; - SEARCH on $(src) = $(SEARCH_SOURCE) ; - - Depends $(tgt) : $(src) $(head) $(DIRLIST) ; - Clean clean : $(tgt) ; - DirList $(tgt) : $(head) $(src) ; -} - -rule Webify { - local html ; - - for i in [ FGristFiles $(1) ] { - html = $(i:S=.html) ; - MakeLocate $(html) : $(LOCATE_TARGET) ; - SEARCH on $(i) = $(SEARCH_SOURCE) ; - - Depends $(html) : $(i) $(TEMPLATE) $(MDWNTOHTML) ; - Depends all : $(html) ; - Clean clean : $(html) ; - MdwnToHtml $(html) : $(i) ; - } -} - - - -actions DirList { - $(DIRLIST) $(2) > $(1) -} - -actions MdwnToHtml { - $(MDWNTOHTML) $(TEMPLATE) < $(2) > $(1) -} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b116cf6 --- /dev/null +++ b/Makefile @@ -0,0 +1,51 @@ +DESTDIR = $(HOME)/public_html + +TEMPLATE = template.xml +MDWNTOHTML = ./mdwntohtml $(TEMPLATE) + +# HTML to be generated +HTML = index.html + +# Things to copy +COPY += mdwntohtml template.xml +COPY += face.png geneweb.cgi gitweb.cgi +COPY += format.css default.css print.css +COPY += gitweb.cgi git-logo.png gitweb.css gitweb.conf + +# Directories in which %.mdwn generates %.html +PLAIN = . papers poems misc + +# Other targets for "make all" +TARGETS = html copy $(DESTDIR)/tmp $(DESTDIR)/footer.xml $(DESTDIR)/projects + +all: default + +include */*.mk + +$(DESTDIR)/%.html: %.mdwn $(TEMPLATE) + @mkdir -p $(dir $@) + $(MDWNTOHTML) < $< > $@ + +$(DESTDIR)/%: % + @mkdir -p $(dir $@) + cp $< $@ + +$(DESTDIR)/tmp: + mkdir -p $@ + +$(DESTDIR)/footer.xml: $(TEMPLATE) + awk '(/FOOT/) { a += 1; next; } (a == 1) { print; }' $< > $@ + +$(DESTDIR)/projects: + ln -s $(HOME)/projects $@ + +default: $(TARGETS) + +MDWN = $(wildcard $(addsuffix /*.mdwn, $(PLAIN))) +HTML += $(patsubst %.mdwn, %.html, $(MDWN)) + +html: $(addprefix $(DESTDIR)/, $(HTML)) +copy: $(addprefix $(DESTDIR)/, $(COPY)) + +clean: + rm -rf $(wildcard $(DESTDIR)/*) diff --git a/default.css b/default.css index f6635f6..8049c22 100644 --- a/default.css +++ b/default.css @@ -33,6 +33,7 @@ pre { #nav { padding: 0; text-align: center; + border-top: solid black 1px; } #nav li { display: inline; diff --git a/projects/git-logo.png b/git-logo.png similarity index 100% rename from projects/git-logo.png rename to git-logo.png diff --git a/gitweb.cgi b/gitweb.cgi index 5558a10..4839f28 100755 --- a/gitweb.cgi +++ b/gitweb.cgi @@ -1,3 +1,3 @@ #! /bin/sh -GITWEB_CONFIG=/home/neale/public_html/projects/gitweb.conf /usr/lib/cgi-bin/gitweb.cgi "$@" +GITWEB_CONFIG=/home/neale/public_html/gitweb.conf /usr/lib/cgi-bin/gitweb.cgi "$@" diff --git a/gitweb.conf b/gitweb.conf new file mode 100644 index 0000000..6f50863 --- /dev/null +++ b/gitweb.conf @@ -0,0 +1,15 @@ +$projectroot = "/home/neale/projects"; + +$home_link = "/~neale/gitweb.cgi"; +$home_link_str = "projects"; +$logo = "/~neale/git-logo.png"; + +# file with project list; by default, simply scan the projectroot dir. +$projects_list = "/home/neale/projects/public.txt"; + +$site_name = "Neale's git repositories"; +@stylesheets = ("/~neale/default.css", "/~neale/gitweb.css"); +$site_header = "$projectroot/header.xml"; +$site_footer = "/home/neale/public_html/footer.xml"; + +undef $favicon; \ No newline at end of file diff --git a/projects/gitweb.css b/gitweb.css similarity index 100% rename from projects/gitweb.css rename to gitweb.css diff --git a/images/images.mk b/images/images.mk new file mode 100644 index 0000000..1bad756 --- /dev/null +++ b/images/images.mk @@ -0,0 +1 @@ +COPY += $(wildcard images/*.png images/*.gif images/*.jpg) diff --git a/misc/Jamfile b/misc/Jamfile deleted file mode 100644 index e81ee74..0000000 --- a/misc/Jamfile +++ /dev/null @@ -1,3 +0,0 @@ -SubDir TOP misc ; - -Webify drwiii-invaders.mdwn Bohnendämmerung.mdwn ; diff --git a/misc/memoirs/nosering.mdwn b/misc/memoirs/nosering.mdwn deleted file mode 100644 index be1e090..0000000 --- a/misc/memoirs/nosering.mdwn +++ /dev/null @@ -1,7 +0,0 @@ -[[meta title="Nose Ring"]] - -There was this girl on the bus this morning with a nosering. Well, not a ring per se, but a stud in her nose. She had a very symmetrical face and the nose ring really accentuated that fact, so it was difficult not to stare at her. Or, more poetically, I could have gazed at her visage for hours. I think the poetic version would have been just as creepy as the other one, though. - -It reminded me of when T got her nose pierced. I think she was carpooling with Thom that day, and when he got to school and found me he asked if I'd seen her white or silver nose stud. She had been quiet in the car on the way down, hoping he'd mention something, and he was quiet too, but more out of fear. When she finally chimed up saying "well, do you notice anything?" he just stuttered "uh... no." - -The reason he was so reticent to say anything was the same reason that I was. What with the red swelling around the silver dot of a nosering, we both thought she had grown a little zit overnight. diff --git a/papers/Jamfile b/papers/Jamfile deleted file mode 100644 index 005f46b..0000000 --- a/papers/Jamfile +++ /dev/null @@ -1,3 +0,0 @@ -SubDir TOP papers ; - -Webify index.mdwn reply-to-still-harmful.mdwn sockets.mdwn DNS.mdwn html-tutorial.mdwn digimatrix.mdwn tank-tread.mdwn ; diff --git a/papers/index.mdwn b/papers/index.mdwn index 4272b86..3c5814a 100644 --- a/papers/index.mdwn +++ b/papers/index.mdwn @@ -4,7 +4,6 @@ These are papers I have written. Most of them were written to explain a concept to someone on woozle. Hopefully other people will find them useful, too. -* ["Tank Tread" key-signing protocol](tank-tread.html) * [Reply-To Munging Still Considered Harmful](reply-to-still-harmful.html) * [Introduction to TCP Sockets](sockets.html) * [3-Minute HTML Tutorial](html-tutorial.html) diff --git a/poems/Jamfile b/poems/Jamfile deleted file mode 100644 index c9313d1..0000000 --- a/poems/Jamfile +++ /dev/null @@ -1,4 +0,0 @@ -SubDir TOP poems ; - -Webify index.mdwn ducks.mdwn goldfish.mdwn lake.mdwn mice.mdwn - optimized.mdwn poopy.mdwn sap.mdwn snark.mdwn ; diff --git a/projects/Jamfile b/projects/Jamfile deleted file mode 100644 index c371be8..0000000 --- a/projects/Jamfile +++ /dev/null @@ -1,3 +0,0 @@ -SubDir TOP projects ; - -Webify index.mdwn ; diff --git a/projects/gitweb.conf b/projects/gitweb.conf deleted file mode 100644 index a678098..0000000 --- a/projects/gitweb.conf +++ /dev/null @@ -1,18 +0,0 @@ -$projectroot = "/home/neale/public_html/projects"; - -$home_link = "/~neale/gitweb.cgi"; -$home_link_str = "projects"; -$logo = "/~neale/projects/git-logo.png"; - -# html text to include at home page -$home_text = "indextext.html"; - -# file with project list; by default, simply scan the projectroot dir. -$projects_list = $projectroot; - -$site_name = "Neale's git repositories"; -@stylesheets = ("/~neale/default.css", "/~neale/projects/gitweb.css"); -$site_header = "$projectroot/header.xml"; -$site_footer = "$projectroot/footer.xml"; - -undef $favicon; \ No newline at end of file diff --git a/projects/index.mdwn b/projects/index.mdwn deleted file mode 100644 index f0f42cf..0000000 --- a/projects/index.mdwn +++ /dev/null @@ -1,9 +0,0 @@ -Title: try again - -This is where I keep my source code, but a web browser won't be able to -make much sense of it. Maybe you should try the [gitweb -interface](../gitweb.cgi). - -If you came here looking for an RSS feed, just replace "repos/" -in the URL with "gitweb.cgi". - diff --git a/src/Jamfile b/src/Jamfile deleted file mode 100644 index 0437a45..0000000 --- a/src/Jamfile +++ /dev/null @@ -1,11 +0,0 @@ -SubDir TOP src ; - -Webify index.mdwn xss.mdwn escm.mdwn firebot.mdwn pysieved.mdwn ; - -SubInclude TOP src eguile ; -SubInclude TOP src ipqueue ; -SubInclude TOP src postscript ; -SubInclude TOP src python ; -SubInclude TOP src dwm ; -SubInclude TOP src misc ; - diff --git a/src/dwm/Jamfile b/src/dwm/Jamfile deleted file mode 100644 index d1abdda..0000000 --- a/src/dwm/Jamfile +++ /dev/null @@ -1,6 +0,0 @@ -SubDir TOP src dwm ; - -Webify index.mdwn ; -Copy config.h : $(HOME)/src/ports/dwm/config.h ; -Copy status.sh : $(HOME)/bin/status ; -Copy dwm-button.sh : $(HOME)/bin/dwm-button ; diff --git a/src/dwm/dwm.mk b/src/dwm/dwm.mk new file mode 100644 index 0000000..2acbc72 --- /dev/null +++ b/src/dwm/dwm.mk @@ -0,0 +1,10 @@ +TARGETS += $(DESTDIR)/src/dwm/config.h $(DESTDIR)/src/dwm/status.sh +TARGETS += $(DESTDIR)/src/dwm/dwm-button.sh + +$(DESTDIR)/src/dwm/config.h: $(HOME)/src/ports/dwm/config.h + @mkdir -p $(@D) + cp $< $@ + +$(DESTDIR)/src/dwm/%.sh: $(HOME)/bin/% + @mkdir -p $(@D) + cp $< $@ diff --git a/src/eguile/Jamfile b/src/eguile/Jamfile deleted file mode 100644 index 18057d8..0000000 --- a/src/eguile/Jamfile +++ /dev/null @@ -1,3 +0,0 @@ -SubDir TOP src eguile ; - -Webify index.mdwn ; diff --git a/src/index.mdwn b/src/index.mdwn index d889b20..0e176c8 100644 --- a/src/index.mdwn +++ b/src/index.mdwn @@ -8,7 +8,7 @@ of these packages. Networky things ------------------------------- -* [pysieved](pysieved/), a Python ManageSieve server +* [pysieved](pysieved.html), a Python ManageSieve server * [Firebot](firebot.html), an easily-extended IRC bot in continuous use since 1996 * [Python IPQUEUE library](ipqueue/) diff --git a/src/ipqueue/Jamfile b/src/ipqueue/Jamfile deleted file mode 100644 index 28546be..0000000 --- a/src/ipqueue/Jamfile +++ /dev/null @@ -1,3 +0,0 @@ -SubDir TOP src ipqueue ; - -Webify index.mdwn ; diff --git a/src/ipqueue/ipqueue-1.0.tar.gz b/src/ipqueue/ipqueue-1.0.tar.gz deleted file mode 100644 index c32cf80..0000000 Binary files a/src/ipqueue/ipqueue-1.0.tar.gz and /dev/null differ diff --git a/src/ipqueue/ipqueue-1.1pre1.tar.gz b/src/ipqueue/ipqueue-1.1pre1.tar.gz deleted file mode 100644 index 86abbbf..0000000 Binary files a/src/ipqueue/ipqueue-1.1pre1.tar.gz and /dev/null differ diff --git a/src/ipqueue/ipqueue-1.2.tar.gz b/src/ipqueue/ipqueue-1.2.tar.gz deleted file mode 100644 index 4a5c62e..0000000 Binary files a/src/ipqueue/ipqueue-1.2.tar.gz and /dev/null differ diff --git a/src/ipqueue/ipqueue-1.3.tar.gz b/src/ipqueue/ipqueue-1.3.tar.gz deleted file mode 100644 index f8b728d..0000000 Binary files a/src/ipqueue/ipqueue-1.3.tar.gz and /dev/null differ diff --git a/src/ipqueue/ipqueue-1.4.0.tar.gz b/src/ipqueue/ipqueue-1.4.0.tar.gz deleted file mode 100644 index 6adc0fb..0000000 Binary files a/src/ipqueue/ipqueue-1.4.0.tar.gz and /dev/null differ diff --git a/src/ipqueue/ipqueue-1.4.1.tar.gz b/src/ipqueue/ipqueue-1.4.1.tar.gz deleted file mode 100644 index 3755e21..0000000 Binary files a/src/ipqueue/ipqueue-1.4.1.tar.gz and /dev/null differ diff --git a/src/misc/Jamfile b/src/misc/Jamfile deleted file mode 100644 index a40e5d3..0000000 --- a/src/misc/Jamfile +++ /dev/null @@ -1,4 +0,0 @@ -SubDir TOP src misc ; - -Webify index.mdwn ; -AutoIndex index.mdwn : index.head.mdwn : 9p.scm ; diff --git a/src/postscript/Jamfile b/src/postscript/Jamfile deleted file mode 100644 index 2ab57ad..0000000 --- a/src/postscript/Jamfile +++ /dev/null @@ -1,4 +0,0 @@ -SubDir TOP src postscript ; - -Webify index.mdwn ; -AutoIndex index.mdwn : index.head.mdwn : alice.ps banner.ps emergency-card.ps graph-paper.ps logo.ps page_dimensions.ps ruled-paper.ps skel.ps ; \ No newline at end of file diff --git a/src/postscript/index.dirlist b/src/postscript/index.dirlist deleted file mode 100644 index 25e9a93..0000000 --- a/src/postscript/index.dirlist +++ /dev/null @@ -1,4 +0,0 @@ -== PostScript Hacks == - -Here are some little programs that are either too small or too -self-explanatory to deserve their own web pages. diff --git a/src/postscript/index.stp b/src/postscript/index.stp deleted file mode 100644 index 9e33e5b..0000000 --- a/src/postscript/index.stp +++ /dev/null @@ -1,8 +0,0 @@ - - -
Here is some neat stuff that's too small or self-explanatory - to deserve its own web page.
-