aboutsummaryrefslogtreecommitdiff
path: root/japanese/today
diff options
context:
space:
mode:
authorRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-02-28 23:47:38 +0000
committerRaphael Kubo da Costa <rakuco@FreeBSD.org>2016-02-28 23:47:38 +0000
commit6b83f7c9e978fb11ed2828ccf86d1a0c5803c256 (patch)
tree429b027dc1ae4cc88e8e0016a73cb9be96d783d5 /japanese/today
parentb3c7635d313da55121965aba21e7a95ef955ad73 (diff)
downloadports-6b83f7c9e978fb11ed2828ccf86d1a0c5803c256.tar.gz
ports-6b83f7c9e978fb11ed2828ccf86d1a0c5803c256.zip
Fix line breaks conversion.
Current japanese/today converts each file's line breaks from CRLF to LF with the following procedure in Makefile: ${SED} 's/.$$//' It is a very problematic method, and breaks many Japanese strings in the data files (*.tbl). To solve the problem, use "${TR} -d '\015'" for the conversion. PR: 206568 Submitted by: WATANABE Kazuhiro <CQG00620@nifty.ne.jp> (maintainer)
Notes
Notes: svn path=/head/; revision=409785
Diffstat (limited to 'japanese/today')
-rw-r--r--japanese/today/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/japanese/today/Makefile b/japanese/today/Makefile
index c31588e09baa..a4e458aa8c43 100644
--- a/japanese/today/Makefile
+++ b/japanese/today/Makefile
@@ -3,7 +3,7 @@
PORTNAME= today
PORTVERSION= 2.12
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= japanese games
MASTER_SITES= http://ftp.vector.co.jp/29/42/476/
DISTNAME= ja-${PORTNAME}-${PORTVERSION}
@@ -32,7 +32,7 @@ post-extract:
gengo.tbl hist??.tbl history.tbl holiday.tbl magazine.tbl \
monthly.tbl schedule.tbl suffix.tbl week.tbl; \
do \
- ${SED} 's/.$$//' $$i | nkf -Se > $$i.tmp ;\
+ nkf -Se $$i | ${TR} -d '\015' > $$i.tmp ;\
${MV} -f $$i.tmp $$i ; \
done)