# HG changeset patch # User Oleksandr Gavenko # Date 1314917011 -10800 # Node ID 86c0184efac760c7b6b40d1b06d5917df66d0408 # Parent af31eb0abc2e9dc51410ec06c44863044d39f84d Comment syntax convention. diff -r af31eb0abc2e -r 86c0184efac7 HACKING.rst --- 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. ==================================================== :: diff -r af31eb0abc2e -r 86c0184efac7 Makefile --- 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 $< >$@