Permalink
Browse files

Add script for building EEP index, adapt index

  • Loading branch information...
1 parent 6a5224b commit c09f57a08e85b6b0491f5d78179ec837d22feb64 @RaimoNiskanen RaimoNiskanen committed Mar 26, 2010
Showing with 519 additions and 110 deletions.
  1. +14 −6 Makefile
  2. +375 −0 eep-index.pl
  3. +59 −0 eep-pre.pl
  4. +71 −104 eeps/eep-0000.md
View
@@ -6,9 +6,14 @@
## Author: Erlang/OTP, Raimo Niskanen
#
-PERL = perl -w
+PERL = perl -w -CSD
EEPS_DIR = eeps
-MD = ./md/Markdown.pl
+MD = md/Markdown.pl
+MK = Makefile
+IX = eep-index.pl
+PRE = eep-pre.pl
+
+
all: README.html
@$(MAKE) `$(PERL) -e '\
@@ -18,9 +23,12 @@ all: README.html
print "$$d/$$_\n" if s/[.]md$$/.html/; \
}' $(EEPS_DIR)`
-README.html: README.md Makefile $(MD)
- $(PERL) ./md/Markdown.pl $< > $@
+README.html: README.md $(MK) $(MD)
+ $(PERL) $(MD) $< > $@
-eeps/eep-%.html: eeps/eep-%.md Makefile $(MD)
- $(PERL) -lpe 's{^(\[EEP\s+\d+\]:\s+\<eep-\d+)[.]md\>}{$$1.html>}' $< |\
+eeps/eep-0000.html: eeps/eep-*.md $(MK) $(IX) $(PRE)
+ $(PERL) $(IX) eeps/eep-0000.md | $(PERL) $(PRE) |\
$(PERL) $(MD) > $@
+
+eeps/eep-%.html: eeps/eep-%.md $(MK) $(MD) $(PRE)
+ $(PERL) $(PRE) $< | $(PERL) $(MD) > $@
Oops, something went wrong.

0 comments on commit c09f57a

Please sign in to comment.