Build sed 1.18.

This commit is contained in:
Andrius Štikonas 2021-01-10 21:22:30 +00:00 committed by fosslinux
parent 90cd17e453
commit d59f0f3495
3 changed files with 32 additions and 0 deletions

View file

@ -49,3 +49,8 @@ kaem --file mes.kaem
cd tcc-0.9.26p1
kaem --file ../tcc.kaem
cd ..
# Part 7: sed
cd sed-1.18
kaem --file ../sed.kaem
cd ..

17
sysa/sed.kaem Executable file
View file

@ -0,0 +1,17 @@
#!/bin/sh
set -ex
# Variables
bindir=/after/bin
# Compile
tcc -c getopt1.c
tcc -c getopt.c
tcc -c regex.c
tcc -c utils.c
tcc -c -Dalloca alloca.c
tcc -c -DHAVE_BCOPY sed.c
# Link
tcc -static -o ${bindir}/sed alloca.o getopt1.o getopt.o regex.o sed.o utils.o