Browse Source

...

ENGINE-133
Volker Birk 6 years ago
parent
commit
5a32fd91a9
3 changed files with 7 additions and 7 deletions
  1. +1
    -1
      Makefile.conf
  2. +5
    -5
      db/dic2csv.py
  3. +1
    -1
      src/Makefile

+ 1
- 1
Makefile.conf View File

@ -10,8 +10,8 @@ PREFIX=$(HOME)
YML2PROC=$(HOME)/yml2/yml2proc
YML_PATH=$(HOME)/yml2
ASN1C=asn1c
ASN1C_INCLUDE=/opt/local/share/asn1c
LIBGPGME=/opt/local/lib/libgpgme-pthread.11.dylib
# C makros (not environment variables) to overwrite:
#


+ 5
- 5
db/dic2csv.py View File

@ -21,8 +21,8 @@ p.add_argument('--lang', '-l', type=str, default="en_US",
help='use dictionary for language LANG (default: en_US)')
p.add_argument('--encoding', '-e', type=str, default="utf-8",
help='file encoding (default: utf-8)')
p.add_argument('--full', '-f', action='store_true',
help="full list - don't reduce to 65536 words")
p.add_argument('--cut', '-c', action='store_true',
help="cut list - reduce to 65536 words")
args = p.parse_args()
@ -50,12 +50,12 @@ _words = [w for w in _all if len(w) > 2 and not unwanted.match(w)]
_words.sort()
_words = [w for w, g in itertools.groupby(_words)]
if not args.full:
if args.cut:
while len(_words) > 65536 * 2:
_words = _words[::2]
if len(_words) > 65536:
if not args.full:
if args.cut:
_words = _words[:65536]
elif len(_words) < 65536:
sys.stderr.write(
@ -67,7 +67,7 @@ elif len(_words) < 65536:
)
_words.extend(_words[:65536-len(_words)])
if not args.full:
if args.cut:
assert len(_words) == 65536, "lenght is {}".format(len(_words))
for i, w in enumerate(_words):


+ 1
- 1
src/Makefile View File

@ -8,7 +8,7 @@ ifeq ($(BUILD_FOR),Darwin)
TARGET?=libpEpEngine.dylib
MACOSX_VERSION_MIN=10.6
GPGME_IN=$(HOME)
LIBGPGME=libgpgme-pthread.dylib
LIBGPGME?=libgpgme-pthread.dylib
CC?=clang -std=c99 -pthread
LD?=clang
CFLAGS?=-I$(GPGME_IN)/include -I$(HOME)/include -I/opt/local/include $(OPTIMIZE) -pedantic \


Loading…
Cancel
Save