[Reproducible-commits] [blog] 01/01: Add a comment explaining what blog-local.setup is
Ximin Luo
infinity0 at debian.org
Fri Apr 15 13:23:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository blog.
commit f093884639713f5bc0c9a83a1c3c53774c7072aa
Author: Ximin Luo <infinity0 at debian.org>
Date: Fri Apr 15 15:22:48 2016 +0200
Add a comment explaining what blog-local.setup is
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2c7b33c..6983a4f 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,11 @@ serve: local
local: blog-local.setup
ikiwiki --setup blog-local.setup
+# build a local-only ikiwiki setup file. the file format is not very complex,
+# so we use a minor hack - we embed local values in our main blog.setup file,
+# in comments starting "##local:"
blog-local.setup: blog.setup Makefile
- sed -re 's/^(\S*): (.*)\s*#local:\s*(.*)$$/\1: \3/g' "$<" > "$@"
+ sed -re 's/^(\S*): (.*)##local:\s*(.*)$$/\1: \3/g' "$<" > "$@"
clean:
rm -rf local blog-local.setup .ikiwiki
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/blog.git
More information about the Reproducible-commits
mailing list