Use ${ECHON} for when /bin/echo -n is needed

This commit is contained in:
Landon Curt Noll
2021-03-06 22:21:36 -08:00
parent 7eba99ac29
commit 1b5636afed
3 changed files with 18 additions and 6 deletions

View File

@@ -180,6 +180,11 @@ SORT= sort
TOUCH= touch
TRUE= true
# NOTE: On some shells, echo is a builtin that does
# not understand -n, so we call /bin/echo -n
# directly to get around such shells.
ECHON= /bin/echo -n
# The ${SCRIPT} list is the list of calc shell script files (without the .calc
# extension) which will be installed.
#
@@ -313,7 +318,7 @@ depend:
if [ X"$$i" != X"/dev/null" ]; then \
echo "$$i: $$i.calc"; \
echo ' @$${RM} -f $$@'; \
/bin/echo -n ' @$${SED} -e "1s:^#!/usr/local/src/bin/'; \
${ECHON} ' @$${SED} -e "1s:^#!/usr/local/src/bin/'; \
echo 'calc/calc:#!$${BINDIR}/calc:" $$?>$$@'; \
echo ' @$${CHMOD} +x $$@'; \
fi; \