mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-04 02:15:24 +01:00
Build sed 1.18.
This commit is contained in:
parent
90cd17e453
commit
d59f0f3495
3 changed files with 32 additions and 0 deletions
10
rootfs.sh
10
rootfs.sh
|
|
@ -73,6 +73,16 @@ ln -s /after/lib x86-mes
|
|||
ln -s /after/lib/linux .
|
||||
popd
|
||||
|
||||
mkdir -p ../sources
|
||||
|
||||
# sed
|
||||
url=ftp://ftp.gnu.org/gnu/sed/sed-1.18.tar.gz
|
||||
pushd ../sources
|
||||
wget --continue "$url"
|
||||
popd
|
||||
cp sed.kaem tmp/after
|
||||
tar -C tmp/after -xf ../sources/$(basename $url)
|
||||
|
||||
# General cleanup
|
||||
find tmp -name .git -exec rm -rf \;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
17
sysa/sed.kaem
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue