...
authorVolker Birk <vb@pep.foundation>
Tue, 22 Nov 2016 22:27:33 +0100
changeset 14173507e785e538
parent 1412 51341b8d69d0
child 1418 d1531c05de22
...
Makefile.conf
db/dic2csv.py
src/Makefile
     1.1 --- a/Makefile.conf	Mon Nov 21 22:27:25 2016 +0100
     1.2 +++ b/Makefile.conf	Tue Nov 22 22:27:33 2016 +0100
     1.3 @@ -10,8 +10,8 @@
     1.4  YML2PROC=$(HOME)/yml2/yml2proc
     1.5  YML_PATH=$(HOME)/yml2
     1.6  ASN1C=asn1c
     1.7 -
     1.8  ASN1C_INCLUDE=/opt/local/share/asn1c
     1.9 +LIBGPGME=/opt/local/lib/libgpgme-pthread.11.dylib
    1.10  
    1.11  # C makros (not environment variables) to overwrite:
    1.12  #
     2.1 --- a/db/dic2csv.py	Mon Nov 21 22:27:25 2016 +0100
     2.2 +++ b/db/dic2csv.py	Tue Nov 22 22:27:33 2016 +0100
     2.3 @@ -21,8 +21,8 @@
     2.4      help='use dictionary for language LANG (default: en_US)')
     2.5  p.add_argument('--encoding', '-e', type=str, default="utf-8",
     2.6      help='file encoding (default: utf-8)')
     2.7 -p.add_argument('--full', '-f', action='store_true',
     2.8 -    help="full list - don't reduce to 65536 words")
     2.9 +p.add_argument('--cut', '-c', action='store_true',
    2.10 +    help="cut list - reduce to 65536 words")
    2.11  
    2.12  args = p.parse_args()
    2.13  
    2.14 @@ -50,12 +50,12 @@
    2.15  _words.sort()
    2.16  _words = [w for w, g in itertools.groupby(_words)]
    2.17  
    2.18 -if not args.full:
    2.19 +if args.cut:
    2.20      while len(_words) > 65536 * 2:
    2.21          _words = _words[::2]
    2.22  
    2.23  if len(_words) > 65536:
    2.24 -    if not args.full:
    2.25 +    if args.cut:
    2.26          _words = _words[:65536]
    2.27  elif len(_words) < 65536:
    2.28      sys.stderr.write(
    2.29 @@ -67,7 +67,7 @@
    2.30          )
    2.31      _words.extend(_words[:65536-len(_words)])
    2.32  
    2.33 -if not args.full:
    2.34 +if args.cut:
    2.35      assert len(_words) == 65536, "lenght is {}".format(len(_words))
    2.36  
    2.37  for i, w in enumerate(_words):
     3.1 --- a/src/Makefile	Mon Nov 21 22:27:25 2016 +0100
     3.2 +++ b/src/Makefile	Tue Nov 22 22:27:33 2016 +0100
     3.3 @@ -8,7 +8,7 @@
     3.4  TARGET?=libpEpEngine.dylib
     3.5  MACOSX_VERSION_MIN=10.6
     3.6  GPGME_IN=$(HOME)
     3.7 -LIBGPGME=libgpgme-pthread.dylib
     3.8 +LIBGPGME?=libgpgme-pthread.dylib
     3.9  CC?=clang -std=c99 -pthread
    3.10  LD?=clang
    3.11  CFLAGS?=-I$(GPGME_IN)/include -I$(HOME)/include -I/opt/local/include $(OPTIMIZE) -pedantic \