summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Kylie McClain <somasis@exherbo.org> 2015-09-21 20:42:36 -0400
committerAvatar Kylie McClain <somasis@exherbo.org> 2015-09-21 20:43:34 -0400
commit2928e675b48b5feda52e0fb040fc0e2a4866a0ac (patch)
tree20325397f3c8b0ff5b8b4a095294f3e21777e2a8
parentf47bafcbfcdf9b6de101fa7160f4181a12842a92 (diff)
downloadwww-2928e675b48b5feda52e0fb040fc0e2a4866a0ac.tar.gz
www-2928e675b48b5feda52e0fb040fc0e2a4866a0ac.tar.xz
Makefile: adjust for docs.git changes
Change-Id: Iad0724031a60cd8abb4a46b44b4059c21c74009f
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3d5394f..a468755 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,9 @@ all: $(addsuffix .html,$(basename $(shell find -type f -name '*.mkd' -not -whole
@echo "Generating $@ ..."
@ruby -e "File.open('$<.tmp', 'w') {|file| file.write File.read('$<').gsub(/#\{include ([0-9A-Za-z_.]+)\}/) {|z| File.read(\"#{\$$1}.part.tmpl\")}}"
@sed -i -e '1 s,^Title: ,Title: Exherbo - ,' $<.tmp
+ @sed -i -r -e 's|[^\[`](\[pkg:)repository/(\S+)(\])|\[`repository/\2`\](//git.exherbo.org/summer/repositories/\2/index.html)|g' $<.tmp
+ @sed -i -r -e 's|[^\[`](\[pkg:)(\S+/\S+)(\])|\[`\2`\](//git.exherbo.org/summer/packages/\2/index.html)|g' $<.tmp
+ @sed -i -r -e 's,[^\[`](\[::(\w+)\]),\[`\1`\](//git.exherbo.org/\2.git),g' $<.tmp
@maruku --html --output $@ $<.tmp
@sed -i -e 's,<head>,&<link rel="shortcut icon" href="/favicon.png" />,' $@
@sed -i -e 's,<td />,<td></td>,g' $@