source: trunk/dports/games/jnethack/files/patch-sys__unix__nethack.sh @ 19227

Last change on this file since 19227 was 19227, checked in by takanori, 13 years ago

New port: jnethack
Bug: 10513
Submitted by: kyut@…
Reviewed by: takanori@

  • Property svn:eol-style set to native
File size: 627 bytes
Line 
1--- sys/unix/nethack.sh.orig    2006-08-11 15:25:54.000000000 +0900
2+++ sys/unix/nethack.sh 2006-08-11 15:27:39.000000000 +0900
3@@ -5,6 +5,7 @@
4 export HACKDIR
5 HACK=$HACKDIR/nethack
6 MAXNROFPLAYERS=20
7+NKF="nkf -u -w"
8 
9 # JP
10 # set LC_ALL, NETHACKOPTIONS etc..
11@@ -26,6 +27,10 @@
12        export USERFILESEARCHPATH
13 fi
14 
15+if [ "X$LANG" = "Xja_JP.eucJP" ] ; then
16+       NKF="nkf -u -e"
17+fi
18+
19 #if [ "X$DISPLAY" ] ; then
20 #      xset fp+ $HACKDIR
21 #fi
22@@ -84,9 +89,9 @@
23 cd $HACKDIR
24 case $1 in
25        -s*)
26-               exec $HACK "$@"
27+               exec $HACK "$@" | $NKF
28                ;;
29        *)
30-               exec $HACK "$@" $MAXNROFPLAYERS
31+               exec $HACK "$@" $MAXNROFPLAYERS | $NKF
32                ;;
33 esac
Note: See TracBrowser for help on using the repository browser.