'echo' behaviour differs between SYSV and BSD.
This commit is contained in:
parent
4cc75139b9
commit
abb532f661
@ -26,7 +26,9 @@
|
|||||||
#
|
#
|
||||||
#ident "%Z%%M% %I% %E% SMI"
|
#ident "%Z%%M% %I% %E% SMI"
|
||||||
|
|
||||||
echo "\
|
BSDECHO=-e
|
||||||
|
|
||||||
|
echo ${BSDECHO} "\
|
||||||
/*\n\
|
/*\n\
|
||||||
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.\n\
|
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.\n\
|
||||||
* Use is subject to license terms.\n\
|
* Use is subject to license terms.\n\
|
||||||
@ -43,7 +45,7 @@ replace=' "\1",'
|
|||||||
|
|
||||||
sed -n "s/$pattern/$replace/p" || exit 1
|
sed -n "s/$pattern/$replace/p" || exit 1
|
||||||
|
|
||||||
echo "\
|
echo ${BSDECHO} "\
|
||||||
};\n\
|
};\n\
|
||||||
\n\
|
\n\
|
||||||
static const int _dt_ntag = sizeof (_dt_errtags) / sizeof (_dt_errtags[0]);\n\
|
static const int _dt_ntag = sizeof (_dt_errtags) / sizeof (_dt_errtags[0]);\n\
|
||||||
|
@ -26,7 +26,9 @@
|
|||||||
#
|
#
|
||||||
#ident "%Z%%M% %I% %E% SMI"
|
#ident "%Z%%M% %I% %E% SMI"
|
||||||
|
|
||||||
echo "\
|
BSDECHO=-e
|
||||||
|
|
||||||
|
echo ${BSDECHO} "\
|
||||||
/*\n\
|
/*\n\
|
||||||
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n\
|
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n\
|
||||||
* Use is subject to license terms.\n\
|
* Use is subject to license terms.\n\
|
||||||
@ -47,7 +49,7 @@ nawk '
|
|||||||
printf("\tcase %s: return (\"%s\");\n", $2, tolower(substr($2, 10)));
|
printf("\tcase %s: return (\"%s\");\n", $2, tolower(substr($2, 10)));
|
||||||
}'
|
}'
|
||||||
|
|
||||||
echo "\
|
echo ${BSDECHO} "\
|
||||||
default: return (\"unknown\");\n\
|
default: return (\"unknown\");\n\
|
||||||
}\n\
|
}\n\
|
||||||
}"
|
}"
|
||||||
|
Loading…
Reference in New Issue
Block a user