[tnozaki-flex] mkskel.sh uses ${TOOL_SED} for USETOOLS
Issue #327
resolved
there’s override some macro while running mkskel.sh to generate skel.c
see following target in external/bsd/flex/bin/Makefile:
skel.c: flex.skl mkskel.sh flexint.h tables_shared.h
${TOOL_SED} -e 's/m4_/m4postproc_/g' -e 's/m4preproc_/m4_/g' \
${IDIST}/flex.skl | ${TOOL_M4} -I${IDIST} -P \
-DFLEX_MAJOR_VERSION=`echo ${VERSION} | cut -f 1 -d .` \
-DFLEX_MINOR_VERSION=`echo ${VERSION} | cut -f 2 -d .` \
-DFLEX_SUBMINOR_VERSION=`echo ${VERSION} | cut -f 3 -d .` | \
${TOOL_SED} -e 's/m4postproc_/m4_/g' | \
${HOST_SH} ${IDIST}/mkskel.sh ${IDIST} ${TOOL_M4} ${VERSION} > ${.TARGET}
Comments (6)
-
reporter -
reporter it seems that N HEAD
${TOOL_SED} -e 's/4_/a4_/g; s/m4preproc_/m4_/g'
break ifdef `__ia64__ arch(replaced `__ia6a4__), curious. what are they doing? -
reporter ok, this replacing keyword is done by mkskel.sh but this script can’t override sed by nbsed
sed 's/4_/a4_/g s/m4preproc_/m4_/g ' "$srcdir/flex.skl" | "$m4" -P -I "$srcdir" "-DFLEX_MAJOR_VERSION=$1" \ "-DFLEX_MINOR_VERSION=$2" \ "-DFLEX_SUBMINOR_VERSION=$3" | sed '/^%#/d s/m4_/m4preproc_/g s/a4_/4_/g s/[\\"]/\\&/g s/.*/ "&",/'
-
reporter - edited description
- changed title to [tnozaki-flex] mkskel.sh uses nbsed from USETOOLS
-
reporter - changed status to resolved
done, see <<cset:2348ae8481ea965e22113d76e6346489a301e349>>
-
reporter - changed title to [tnozaki-flex] mkskel.sh uses ${TOOL_SED} for USETOOLS
- Log in to comment
N HEAD: