aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/gcin/files/patch-script
blob: a9f7618064b9201986fa9e02b0e986534e3d7cd1 (plain) (blame)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
diff -ruN scripts.orig/Makefile scripts/Makefile
--- scripts.orig/Makefile   Wed Feb 22 21:35:19 2006
+++ scripts/Makefile    Wed Feb 22 21:36:28 2006
@@ -1,13 +1,10 @@
 include ../config.mak
 
-SCRIPTS=gcin-user-setup modify-XIM utf8-edit
+SCRIPTS=gcin-user-setup utf8-edit
 
 all:   $(SCRIPTS)
 
 install:
-   if [ $(prefix) = /usr/local ]; then \
-      sh modify-XIM; \
-   fi
    install -d $(GCIN_SCRIPT_DIR_i)
    install -m 755 $(SCRIPTS) $(GCIN_SCRIPT_DIR_i)
 clean:
diff -ruN scripts.orig/gcin-user-setup scripts/gcin-user-setup
--- scripts.orig/gcin-user-setup    Wed Feb 22 21:35:19 2006
+++ scripts/gcin-user-setup Wed Feb 22 21:36:44 2006
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 if [ -z "$1" -o -z "$2" ]; then
   echo "please specify gcin_table_dir gcin_bin_dir"
diff -ruN scripts.orig/utf8-edit scripts/utf8-edit
--- scripts.orig/utf8-edit  Wed Feb 22 21:35:19 2006
+++ scripts/utf8-edit   Wed Feb 22 21:37:58 2006
@@ -1,10 +1,10 @@
-#!/bin/bash
+#!/bin/sh
 
-PATH=$PATH:/opt/gnome/bin:/usr/local/bin
+PATH=$PATH:/usr/X11R6/bin:/usr/local/bin
 
-for i in leafpad gedit madedit kedit kate
+for i in leafpad gedit gvim madedit kedit kate
 do
-  which $i >& /dev/null
+  which $i > /dev/null
   if [ $? = 0 ]; then
     UTF8ED=$i
     break