pkgsrc/devel/gtexinfo/patches/patch-util_texi2dvi
2014-07-17 12:56:23 +00:00

34 lines
1.4 KiB
Text

$NetBSD: patch-util_texi2dvi,v 1.4 2014/07/17 12:56:23 ryoon Exp $
As indicated in pkg/48075, pdksh doesn't support double-parens
if not containing an arithmetic expression of a particular form.
Older bash and ast-ksh apparently also had problems with this.
Second part: fix PR pkg/48075. This should work with pdksh.
--- util/texi2dvi.orig 2013-09-26 23:04:02.000000000 +0000
+++ util/texi2dvi
@@ -25,10 +25,10 @@
# If possible, please send a copy of the output of the script called with
# the `--debug' option when making a bug report.
-test -f /bin/ksh && test -z "$RUNNING_KSH" \
- && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
- && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/ksh $0 ${1+"$@"}; }
-unset RUNNING_KSH
+#test -f /bin/ksh && test -z "$RUNNING_KSH" \
+# && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
+# && { RUNNING_KSH=true; export RUNNING_KSH; exec /bin/ksh $0 ${1+"$@"}; }
+#unset RUNNING_KSH
# No failure shall remain unpunished.
set -e
@@ -1103,7 +1103,7 @@ run_bibtex ()
# bibtex would never be run.
if test -r "$in_noext.aux" \
&& test -r "$in_noext.log" \
- && ((grep 'Warning:.*Citation.*undefined' "$in_noext.log" \
+ && ( (grep 'Warning:.*Citation.*undefined' "$in_noext.log" \
|| grep '.*Undefined citation' "$in_noext.log" \
|| grep 'No file .*\.bbl\.' "$in_noext.log") \
|| (grep 'No \.aux file' "$in_noext.log" \