-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheptex-100420-patch1.diff
48 lines (45 loc) · 1.99 KB
/
eptex-100420-patch1.diff
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
46
47
48
diff -udr /tmp/eptex-100420//0eptex.sh eptex-100420//0eptex.sh
--- /tmp/eptex-100420//0eptex.sh 2010-04-20 15:54:55.000000000 +0900
+++ eptex-100420//0eptex.sh 2010-05-30 20:11:08.440764139 +0900
@@ -17,12 +17,12 @@
# the content of ptex-src-3.1.11-box.patch is already in
# ptex-base.ch.0308.diff in ptex-qtrip.
cat ../ptexlive-$PTEXLIVE_VER/archive/ptex-src-3.1.11-box.patch | \
- (cd $WEBDIR/ptexdir; patch -p0 -R ) || exit 1
+ (cd $WEBDIR/ptexdir; $PATCH -p0 -R ) || exit 1
tarx ../ptex-qtrip-$QTRIP_VER.tar.gz $TMP_PREFIX
(cd $TMP_PREFIX/ptex-qtrip;
for x in ptex-base.ch.*.diff; do
echo "[patching] $x"
- cat $x | (cd $WEBDIR/ptexdir; patch -p0)
+ cat $x | (cd $WEBDIR/ptexdir; $PATCH -p0)
done
)
fi
@@ -52,7 +52,7 @@
echo "[rewriting] autoreconf in $WEBDIR"
(cd $WEBDIR ; autoreconf --verbose)
echo "[rewriting] configure"
-cat $WEBDIR/configure | sed "s/fiif/fi\nif/;s/esac#/esac\n#/" > $WEBDIR/configure.new
+cat $WEBDIR/configure | sed "s/fiif/fi;if/;s/esac#/esac;#/" > $WEBDIR/configure.new
mv $WEBDIR/configure.new $WEBDIR/configure || exit 1
chmod +x $WEBDIR/configure
@@ -66,6 +66,8 @@
echo "[copying] eptex.src"
mkdir -p $TEXMF/ptex/plain/base
cp eptex.src $TEXMF/ptex/plain/base/ || exit 1
+echo "[copying] eptexdefs.lib"
+cp eptexdefs.lib $TEXMF/ptex/plain/base/ || exit 1
echo "[copying] language.def"
mkdir -p $TEXMF/ptex/generic/config
cp language.def $TEXMF/ptex/generic/config/ || exit 1
diff -udr /tmp/eptex-100420//6babel.sh eptex-100420//6babel.sh
--- /tmp/eptex-100420//6babel.sh 2010-04-20 15:27:36.000000000 +0900
+++ eptex-100420//6babel.sh 2010-05-30 20:11:26.640835796 +0900
@@ -13,7 +13,7 @@
mv $TEXMF/ptex/platex/config/hyphen.cfg \
$TEXMF/ptex/platex/config/hyphen.cfg.ptex
-LOADHYPH_SED="s/\\\\ifx\\\\secondarg\\\\empty/\\\\ifx\\\\false/"
+LOADHYPH_SED="s/\\\\ifx\\\\secondarg\\\\empty/\\\\iffalse/"
# usage: forcenoutf8 $TEXMF path name
# loadhyph-*.tex use greek characters to detect whether the engine is