]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Build: Make `instant-messengers-lj.html` a special html file
authorOleg Broytman <phd@phdru.name>
Sat, 11 Apr 2020 16:37:18 +0000 (19:37 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 11 Apr 2020 16:38:13 +0000 (19:38 +0300)
Makefile

index de032c099cb343e6b2e558c153a45e3fe7161044..907ee0a69415f50e3532d2b14e7794fde2c424fa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ all: phdru.name
 
 
 .PHONY: phdru.name
-phdru.name: news blog
+phdru.name: blog news
 
 
 .PHONY: blog
@@ -40,7 +40,7 @@ templates = $(shell find ../htdocs/phdru.name -type f -name \*.tmpl -print)
 htmls = $(patsubst %.tmpl,%.html,$(templates))
 
 .PHONY: html
-html: phd_site.py $(htmls) sitemap
+html: phd_site.py $(htmls) special-templates sitemap
 
 
 .PHONY: news
@@ -55,3 +55,13 @@ sitemap: $(SITEMAP)
 
 $(SITEMAP): $(allfiles)
        sitemap_gen.py --config=sitemaps/phdru.name-config.xml
+
+
+.PHONY: special-templates
+special-templates: ../htdocs/phdru.name/Russian/Software/instant-messengers/instant-messengers-lj.html
+
+../htdocs/phdru.name/Russian/Software/instant-messengers/instant-messengers-lj.html: ../htdocs/phdru.name/Russian/Software/instant-messengers/instant-messengers.html
+       { sed -e '1,/alink="#ff0000">/d' \
+          -e 's/<div class="section" id="icq">/<lj-cut text="IM">&/' \
+          -e '/<hr width="90%">/,$$d' $< | sed '1,2d'; \
+         echo '</lj-cut>'; } >$@