use GNU configure's as_echo_n instead (courtesy of obache)

This commit is contained in:
richard 2013-10-28 14:21:27 +00:00
parent 5fd2ee1651
commit a97643256f
2 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.25 2013/10/28 06:37:17 richard Exp $
$NetBSD: distinfo,v 1.26 2013/10/28 14:21:27 richard Exp $
SHA1 (gok-2.28.1.tar.bz2) = 194080d2c4993061af3abd48d3a2a14393cef1c4
RMD160 (gok-2.28.1.tar.bz2) = d4cf9a2a10e1c0fb87d70f161e1fa3ee39f71c9b
Size (gok-2.28.1.tar.bz2) = 1588038 bytes
SHA1 (patch-configure) = bf4f2b704005a43da0c32223394fd046bf50e216
SHA1 (patch-configure) = 5a0e168841eff54791375fe9d8ec6a743244694f

View file

@ -1,7 +1,7 @@
$NetBSD: patch-configure,v 1.1 2013/10/28 06:37:17 richard Exp $
$NetBSD: patch-configure,v 1.2 2013/10/28 14:21:27 richard Exp $
* fix non-portable 'echo -n' utilisation by replacing statement
* with simple 'awk' invocation.
* fix non-portable 'echo -n' utilisation by using GNU configure's
* `as_echo_n' command.
--- configure.orig 2009-10-19 16:02:17.000000000 +0000
+++ configure
@ -10,7 +10,7 @@ $NetBSD: patch-configure,v 1.1 2013/10/28 06:37:17 richard Exp $
-LANGDIRS="`$GREP -v "^\#" po/LINGUAS | while read line; do echo -n "$line/ "; done `"
+LANGDIRS="`$AWK 'BEGIN{ORS="/ "} /^\#/ {next} {print}' po/LINGUAS`"
+LANGDIRS="`$GREP -v "^\#" po/LINGUAS | while read line; do $as_echo_n "$line/ "; done `"