mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-09 04:45:23 +01:00
Restructure
This commit is contained in:
parent
e5cbaa9e04
commit
5a369dc783
77 changed files with 419 additions and 295 deletions
44
sysa/diffutils-2.7/diffutils-2.7.kaem
Executable file
44
sysa/diffutils-2.7/diffutils-2.7.kaem
Executable file
|
|
@ -0,0 +1,44 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -ex
|
||||
|
||||
cd build
|
||||
|
||||
# Extract
|
||||
gunzip ../src/${pkg}.tar.gz
|
||||
tar xf ../src/${pkg}.tar
|
||||
cd ${pkg}
|
||||
|
||||
# Touch config.h file
|
||||
catm config.h
|
||||
|
||||
# Compile
|
||||
tcc -c -I. -DNULL_DEVICE=\"/dev/null\" cmp.c
|
||||
tcc -c -I. cmpbuf.c
|
||||
tcc -c -I. error.c
|
||||
tcc -c -I. getopt.c
|
||||
tcc -c -I. getopt1.c
|
||||
tcc -c -I. xmalloc.c
|
||||
tcc -c -I. version.c
|
||||
tcc -c -I. diff.c
|
||||
tcc -c -I. analyze.c
|
||||
tcc -c -I. -DHAVE_DIRENT_H dir.c
|
||||
tcc -c -I. io.c
|
||||
tcc -c -I. -DHAVE_DUP2 -DHAVE_FORK=0 util.c
|
||||
tcc -c -I. context.c
|
||||
tcc -c -I. ed.c
|
||||
tcc -c -I. ifdef.c
|
||||
tcc -c -I. normal.c
|
||||
tcc -c -I. side.c
|
||||
tcc -c -I. fnmatch.c
|
||||
tcc -c -I. regex.c
|
||||
|
||||
# Link
|
||||
tcc -static -o ${bindir}/cmp cmp.o cmpbuf.o error.o getopt.o getopt1.o xmalloc.o version.o
|
||||
tcc -static -o ${bindir}/diff diff.o analyze.o cmpbuf.o dir.o io.o util.o context.o ed.o ifdef.o normal.o side.o fnmatch.o getopt.o getopt1.o regex.o version.o
|
||||
|
||||
# Test
|
||||
cmp --version
|
||||
diff --version
|
||||
|
||||
cd ../..
|
||||
Loading…
Add table
Add a link
Reference in a new issue