* 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
|
||||
# $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
|
||||
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
|
||||
@ -34,6 +34,7 @@ fi
|
||||
allu=QWERTYUIOPASDFGHJKLZXCVBNM
|
||||
alll=qwertyuiopasdfghjklzxcvbnm
|
||||
alln=0123456789
|
||||
alls=______________________________________________________________
|
||||
|
||||
upper()
|
||||
{
|
||||
@ -116,7 +117,7 @@ ac_flags()
|
||||
ac_header()
|
||||
{
|
||||
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
|
||||
do
|
||||
echo "#include <$i>" >>x
|
||||
|
Loading…
Reference in New Issue
Block a user