* From the Solaris tr(1) manual page:
o Each input character found in the array specified by string1 is replaced by the character in the same rela- tive position in the array specified by string2. When the array specified by string2 is shorter that the one specified by string1, the results are unspecified. So give tr <everythingbutalphanum> _ the appropriate number of underscores. * Also strip dashes from header names.
This commit is contained in:
parent
e9d1b0fb7b
commit
6485b06eed
5
Build.sh
5
Build.sh
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $MirOS: src/bin/mksh/Build.sh,v 1.152 2007/02/27 00:23:20 tg Exp $
|
# $MirOS: src/bin/mksh/Build.sh,v 1.153 2007/02/27 00:31:17 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Env: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF, TARGET_OS
|
# Env: CC, CFLAGS, CPP, CPPFLAGS, LDFLAGS, LIBS, NOWARN, NROFF, TARGET_OS
|
||||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
||||||
@ -34,6 +34,7 @@ fi
|
|||||||
allu=QWERTYUIOPASDFGHJKLZXCVBNM
|
allu=QWERTYUIOPASDFGHJKLZXCVBNM
|
||||||
alll=qwertyuiopasdfghjklzxcvbnm
|
alll=qwertyuiopasdfghjklzxcvbnm
|
||||||
alln=0123456789
|
alln=0123456789
|
||||||
|
alls=______________________________________________________________
|
||||||
|
|
||||||
upper()
|
upper()
|
||||||
{
|
{
|
||||||
@ -116,7 +117,7 @@ ac_flags()
|
|||||||
ac_header()
|
ac_header()
|
||||||
{
|
{
|
||||||
hf=$1; shift
|
hf=$1; shift
|
||||||
hv=`echo "$hf" | tr -d '\r\n' | tr -c $alll$allu$alln- _`
|
hv=`echo "$hf" | tr -d '\r\n' | tr -c $alll$allu$alln $alls`
|
||||||
for i
|
for i
|
||||||
do
|
do
|
||||||
echo "#include <$i>" >>x
|
echo "#include <$i>" >>x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user