[Chinese-commits] [fortune-zh] 01/02: makefile: Automatically colorize the cookie.
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Sun Dec 3 12:31:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository fortune-zh.
commit 01d5d9f44e85a7dc17f29efb4d00c29073b6dd88
Author: Mo Zhou <cdluminate at gmail.com>
Date: Sun Dec 3 12:24:43 2017 +0000
makefile: Automatically colorize the cookie.
---
Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile b/Makefile
index 670688b..760278b 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,9 @@ stat:
chinese.dat:
touch chinese
find chinese.d -type f -name '*.dat' -print0 | LC_ALL=C sort -z | xargs -0r cat | cat >> chinese
+ awk '{if ($$0 ~ /--/) {print "[33m" $$0 "[m"} else {print}}' chinese > chinese_colorize
+ sed -i -e 's/《/[32m《/g' -e 's/》/》[m/g' chinese_colorize
+ mv chinese_colorize chinese
strfile chinese
distclean: clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/fortune-zh.git
More information about the Chinese-commits
mailing list