mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
Hack: use sed to strip utf-8 marker from start of file.
This commit is contained in:
parent
9311a2daa0
commit
c62c9899eb
1 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
# -*-mode: Makefile -*-
|
||||
# Copyright 2002 by Eric House (xwords@eehouse.org). All rights reserved.
|
||||
# Copyright 2016 by Eric House (xwords@eehouse.org). All rights
|
||||
# reserved.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
|
@ -22,8 +23,10 @@ TARGET_TYPE ?= WINCE
|
|||
|
||||
include ../Makefile.langcommon
|
||||
|
||||
# use sed to strip the bogus utf8 identifier. There must be a better
|
||||
# way, e.g. with iconv.
|
||||
$(XWLANG)Main.dict.gz: $(XWDICTPATH)/French/ods7.txt
|
||||
cat $< | tr -d '\r' | tr a-z A-Z | grep '^[A-Z]*$$' | gzip >$@
|
||||
cat $< | tr -d '\r' | sed 's,\xEF\xBB\xBF,,' | tr a-z A-Z | gzip >$@
|
||||
|
||||
# Everything but creating of the Main.dict file is inherited from the
|
||||
# "parent" Makefile.langcommon in the parent directory.
|
||||
|
|
Loading…
Reference in a new issue