scc

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

commit 74b3f8fbc062af088bc005f0a15a1415a287352f
parent f480a2c5373abf4290643600dd9376afd95a1cfb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
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