scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit e7226564b6c9c19ebe7e9462553d22795e1c4b33
parent 7a60209bb018563900d30803abd7b66d339489ca
Author: Roberto E. Vargas Caballero <roberto@clue.aero>
Date:   Thu, 30 Jan 2020 13:01:16 +0100

libc: Make more portable the Makefile

Plan9 tr was giving some errors when the option -s was used,
and to avoi them, a chain of tr and sed was used to avoid that
problem.

Diffstat:
Msrc/libc/rules.mk | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libc/rules.mk b/src/libc/rules.mk @@ -11,8 +11,8 @@ LIBCLST= $(PROJECTDIR)/src/libc/libc.lst MKLST = \ echo $? |\ - tr ' ' '\n' |\ - tr -s '\n' |\ + sed 's/ /\n/g' |\ + sed 's/^$$/d' |\ sed 's@^@$(PWD)/@' >> $(LIBCLST) # Rules