mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-20 02:02:58 +01:00
Update initial build of sed from version 4.0.7 to 4.0.9
This commit is contained in:
parent
6a5e57c2f8
commit
8565d26fef
10 changed files with 14 additions and 16 deletions
1
sysa/sed-4.0.9/checksums/pass1
Normal file
1
sysa/sed-4.0.9/checksums/pass1
Normal file
|
|
@ -0,0 +1 @@
|
|||
10514 /after/bin/sed
|
||||
55
sysa/sed-4.0.9/sed-4.0.9.kaem
Executable file
55
sysa/sed-4.0.9/sed-4.0.9.kaem
Executable file
|
|
@ -0,0 +1,55 @@
|
|||
#!/bin/sh
|
||||
|
||||
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
|
||||
# SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
|
||||
# SPDX-FileCopyrightText: 2021 Paul Dersey <pdersey@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
set -ex
|
||||
|
||||
cd build
|
||||
|
||||
# Extract
|
||||
gunzip ../src/${pkg}.tar.gz
|
||||
tar xf ../src/${pkg}.tar
|
||||
cd ${pkg}
|
||||
|
||||
# Create config.h
|
||||
catm config.h
|
||||
|
||||
# Compile
|
||||
|
||||
## libsed.a
|
||||
cd lib
|
||||
|
||||
tcc -c getopt1.c
|
||||
tcc -c -I .. getopt.c
|
||||
tcc -c -I .. -DENABLE_NLS=0 utils.c
|
||||
cp regex_.h regex.h
|
||||
tcc -c -DHAVE_ALLOCA_H -I . regex.c
|
||||
tcc -c obstack.c
|
||||
tcc -c strverscmp.c
|
||||
tcc -c getline.c
|
||||
tcc -c -DHAVE_FCNTL_H mkstemp.c
|
||||
|
||||
tcc -ar cr libsed.a getopt1.o getopt.o utils.o regex.o obstack.o strverscmp.o getline.o mkstemp.o
|
||||
cd ..
|
||||
|
||||
## sed
|
||||
tcc -c -I . -I lib -DSED_FEATURE_VERSION=\"4.0\" sed/compile.c
|
||||
tcc -c -I . -I lib sed/execute.c
|
||||
tcc -c -I . -I lib sed/regexp.c
|
||||
tcc -c -I . -I lib sed/fmt.c
|
||||
tcc -c -I . -I lib -DPACKAGE=\"sed\" -DVERSION=\"4.0.9\" sed/sed.c
|
||||
|
||||
# Link
|
||||
tcc -static -o ${bindir}/sed -L lib lib/libsed.a compile.o execute.o regexp.o fmt.o sed.o -lsed
|
||||
|
||||
# Test
|
||||
sed --version
|
||||
|
||||
cd ../..
|
||||
|
||||
# Checksums
|
||||
fletcher16 checksums/pass1
|
||||
Loading…
Add table
Add a link
Reference in a new issue