-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheptex-100420-nongnu.diff
26 lines (25 loc) · 1.05 KB
/
eptex-100420-nongnu.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
--- /tmp/eptex-100420/0eptex.sh 2010-04-20 15:54:55.000000000 +0900
+++ eptex-100420/0eptex.sh 2010-05-28 21:54:06.000000000 +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