[tlbuild] portability fix for dvipng.test and ptexdir/sample.test - replace $(...) with `...`
Vladimir Volovich
vvv at vsu.ru
Sat May 29 13:47:45 CEST 2010
Hi!
Hi Peter, when running checks on Solaris, 2 of them fail because they're
using #!/bin/sh and on Solaris, /bin/sh does not understand the $(...) syntax.
here is a patch which replaces it with the equivalent `...` syntax:
--- texk/dvipng/dvipng.test (revision 18548)
+++ texk/dvipng/dvipng.test (working copy)
@@ -3,20 +3,20 @@
# Public domain. Originally written by Peter Breitenlohner, 2009.
get_val () {
- res=$(kpsewhich "$@") || { echo "\"kpsewhich $@\" failed"; exit 77; }
+ res=`kpsewhich "$@"` || { echo "\"kpsewhich $@\" failed"; exit 77; }
}
get_val mktex.cnf
-TEXMFCNF=$(dirname $res)
+TEXMFCNF=`dirname $res`
get_val psfonts.map
-TEXFONTMAPS=$(dirname $(dirname $res))//
+TEXFONTMAPS=`dirname \`dirname $res\``//
get_val 8r.enc
-ENCFONTS=$(dirname $(dirname $res))//
+ENCFONTS=`dirname \`dirname $res\``//
get_val --expand-var='$TEXMFMAIN'
TEXMFMAIN=$res
get_val --expand-var='$TEXMFDIST'
TEXMFDIST=$res
-TEXMFLOCAL=$(kpsewhich --expand-var='$TEXMFLOCAL')
+TEXMFLOCAL=`kpsewhich --expand-var='$TEXMFLOCAL'`
export TEXMFCNF TEXFONTMAPS ENCFONTS TEXMFMAIN TEXMFDIST TEXMFLOCAL
--- texk/web2c/ptexdir/sample.test (revision 18548)
+++ texk/web2c/ptexdir/sample.test (working copy)
@@ -11,6 +11,6 @@
testdir=$srcdir/ptexdir/tests
TEXMFCNF=$srcdir/../kpathsea \
- TFMFONTS=$testdir:$(dirname $(dirname $(dirname $tfmpath)))// \
+ TFMFONTS=$testdir:`dirname \`dirname \\\`dirname $tfmpath\\\`\``// \
./pdvitype -show-opcodes $testdir/sample >tests/xsample.typ || exit 1
Best,
v.
More information about the tlbuild
mailing list