summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-02-19 05:47:29 +0000
committerMike Frysinger <vapier@gentoo.org>2008-02-19 05:47:29 +0000
commita5bc16d47480032360d3dd3535514759b9cdfb64 (patch)
tree9cc0e7535d016ca139280e9bad1298c18cb972dd /sys-devel/gcc/files
parentadd eclass documentation #210425 by mren (diff)
downloadgentoo-2-a5bc16d47480032360d3dd3535514759b9cdfb64.tar.gz
gentoo-2-a5bc16d47480032360d3dd3535514759b9cdfb64.tar.bz2
gentoo-2-a5bc16d47480032360d3dd3535514759b9cdfb64.zip
Fix from Roy Marples to fixup portability #210590.
(Portage version: 2.2_pre2)
Diffstat (limited to 'sys-devel/gcc/files')
-rw-r--r--sys-devel/gcc/files/awk/fixlafiles.awk14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys-devel/gcc/files/awk/fixlafiles.awk b/sys-devel/gcc/files/awk/fixlafiles.awk
index c4798f250836..ffade9666235 100644
--- a/sys-devel/gcc/files/awk/fixlafiles.awk
+++ b/sys-devel/gcc/files/awk/fixlafiles.awk
@@ -1,27 +1,27 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.14 2005/09/24 07:31:28 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.15 2008/02/19 05:47:29 vapier Exp $
#
# Helper functions
#
function printn(string) {
- system("echo -n \"" string "\"")
+ printf("%s", string)
}
function einfo(string) {
- system("echo -e \" \\e[32;01m*\\e[0m " string "\"")
+ printf(" \033[32;01m*\033[0m %s\n", string)
}
function einfon(string) {
- system("echo -ne \" \\e[32;01m*\\e[0m " string "\"")
+ printf(" \033[32;01m*\033[0m %s", string)
}
function ewarn(string) {
- system("echo -e \" \\e[33;01m*\\e[0m " string "\"")
+ printf(" \033[33;01m*\033[0m %s\n", string)
}
function ewarnn(string) {
- system("echo -ne \" \\e[33;01m*\\e[0m " string "\"")
+ printf(" \033[33;01m*\033[0m %s", string)
}
function eerror(string) {
- system("echo -e \" \\e[31;01m*\\e[0m " string "\"")
+ printf(" \033[31;01m*\033[0m %s\n", string)
}
#