texlive[69609] Build/source/texk/bibtex-x: do not use sed -E in test
commits+karl at tug.org
commits+karl at tug.org
Sat Jan 27 18:42:25 CET 2024
Revision: 69609
https://tug.org/svn/texlive?view=revision&revision=69609
Author: karl
Date: 2024-01-27 18:42:25 +0100 (Sat, 27 Jan 2024)
Log Message:
-----------
do not use sed -E in test
Modified Paths:
--------------
trunk/Build/source/texk/bibtex-x/ChangeLog
trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test
Modified: trunk/Build/source/texk/bibtex-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/bibtex-x/ChangeLog 2024-01-27 01:50:18 UTC (rev 69608)
+++ trunk/Build/source/texk/bibtex-x/ChangeLog 2024-01-27 17:42:25 UTC (rev 69609)
@@ -1,3 +1,8 @@
+2024-01-27 Karl Berry <karl at freefriends.org>
+
+ * tests/bibtexu-iscjk.test: sed -E is not portable to Solaris 10
+ (and other systems); also, use sed -n .../p instead of grep.
+
2023-12-16 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
* configure.ac, version.h:
Modified: trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test
===================================================================
--- trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test 2024-01-27 01:50:18 UTC (rev 69608)
+++ trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test 2024-01-27 17:42:25 UTC (rev 69609)
@@ -21,8 +21,16 @@
## test for is.knj.str$
icuver=1000
-$_bibtexu --version | grep 'ICU version' | sed -E 's/.*ICU version ([1-9][0-9])\..*/\1/' > tests/icuver.txt
+$_bibtexu --version | sed -n 's/.*ICU version \([1-9][0-9]\)\..*/\1/p' \
+ >tests/icuver.txt
icuver=`cat tests/icuver.txt`
+if test -z "$icuver"; then
+ echo "$0: quitting, could not determine icu version from bibtexu" >&2
+ echo "$0: ($_bibtexu --version)" >&2
+ $_bibtexu --version >&2
+ exit 1
+fi
+
echo "*** icuver="$icuver
if [ $icuver -lt 74 ]; then
# skip CJK Ideograph Extension I
More information about the tex-live-commits
mailing list.