File: FixEncoding

package info (click to toggle)
ruby-sdl 2.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 1,544 kB
  • ctags: 1,359
  • sloc: cpp: 7,598; ansic: 4,498; ruby: 2,246; makefile: 106; sh: 102
file content (32 lines) | stat: -rw-r--r-- 867 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Debian Ruby Extras Maintainers
 <pkg-ruby-extras-maintainers@lists.alioth.debian.org>
Date: Sun, 10 Apr 2016 02:41:35 +0900
Subject: FixEncoding

---
 doc/Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,8 +1,8 @@
 
-RSD = ruby rsd.rb
+RSD = ruby -Ke rsd.rb
 RDFILES = general.rd init.rd video.rd opengl.rd wm.rd event.rd joystick.rd cdrom.rd mixer.rd time.rd font.rd collision.rd sdlskk.rd mpeg.rd
-RD2 = rd2
-RD2OPT = -r rd/rd2html-lib.rb --html-lang=ja --html-charset=EUC-JP
+RD2 = ruby -Ku /usr/bin/rd2
+RD2OPT = -r rd/rd2html-lib.rb --html-lang=ja --html-charset=UTF-8
 
 
 rubysdl_ref.html: rubysdl_ref.rd
@@ -12,7 +12,7 @@
 	cat $(RDFILES) > rubysdl_ref.rd
 
 %.rd: %.rsd
-	$(RSD) < $< > $@
+	$(RSD) < $< | nkf -Ew > $@
 
 install: rubysdl_ref.html
 	cp rubysdl_ref.html rubysdl_ref.rd ..