Created
August 15, 2018 23:40
-
-
Save samueldr/3e8cf37e9a4e364997bda0367a436f53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mv blogs.xml.tmp blogs.xml | |
perl -MJSON -MXML::Simple -e 'print encode_json(XMLin("blogs.xml"));' < blogs.xml > blogs.json.tmp | |
mv blogs.json.tmp blogs.json | |
tpage \ | |
--pre_chomp --post_chomp \ | |
--define modifiedAt="`git log -1 --pretty='%ai' index.tt`" \ | |
--define modifiedBy="`git log -1 --pretty='%an' index.tt`" \ | |
--define root=`echo index.html | sed -e 's|[^/]||g' -e 's|/|../|g'` \ | |
--define fileName=index.tt \ | |
--pre_process=nix-release.tt --pre_process=nixos-release.tt --pre_process=common.tt \ | |
index.tt > index.html.tmp | |
xmllint --nonet --noout index.html.tmp | |
index.html.tmp:290: parser error : Input is not proper UTF-8, indicate encoding ! | |
Bytes: 0x8F 0x83 0xF0 0x9F | |
<a href="http://grahamc.com/blog/cache-nixos-org-now-more-local">П | |
^ | |
make: *** [Makefile:132: index.html] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment