Comment syntax convention.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 02 Sep 2011 01:43:31 +0300
changeset 46 86c0184efac7
parent 45 af31eb0abc2e
child 47 6e17d916bb85
Comment syntax convention.
HACKING.rst
Makefile
--- a/HACKING.rst	Fri Sep 02 01:36:30 2011 +0300
+++ b/HACKING.rst	Fri Sep 02 01:43:31 2011 +0300
@@ -3,6 +3,12 @@
  gadict HACKING guide.
 =======================
 
+Comment syntax convention.
+--------------------------
+
+As 'dictd -c5' format does not support comment syntax we filter out all
+lines that start with '#'.
+
 Register gadict dictionaries for dictd under Debian.
 ====================================================
 ::
--- a/Makefile	Fri Sep 02 01:36:30 2011 +0300
+++ b/Makefile	Fri Sep 02 01:43:31 2011 +0300
@@ -34,12 +34,12 @@
 
 #  --case-sensitive
 %.dict %.index: %.c5
-	dictfmt  -c5 \
+	sed '/^#/d' $< | dictfmt  -c5 \
 	--headword-separator '; ' --break-headwords \
 	--utf8 --allchars \
 	-u "`sed -n '\|http://[[:print:]]\+/|{s=^.*\(http://\)=\1=;p;q;}' $<`" \
 	-s "`sed -n '/^ABOUT: /{s=ABOUT: ==;p;q;}' $<`" \
-	$* <$<
+	$*
 
 %.dict.dz: %.dict
 	dictzip -c $< >$@