mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
Build grep-2.4.
This commit is contained in:
parent
eb650776e9
commit
c19a71c11c
4 changed files with 49 additions and 2 deletions
|
|
@ -133,6 +133,9 @@ get_file https://ftp.gnu.org/gnu/make/make-3.80.tar.gz
|
||||||
# bzip2 1.0.8
|
# bzip2 1.0.8
|
||||||
get_file ftp://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
|
get_file ftp://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz
|
||||||
|
|
||||||
|
# grep 2.4
|
||||||
|
get_file https://ftp.gnu.org/gnu/grep/grep-2.4.tar.gz
|
||||||
|
|
||||||
# bash 2.05b
|
# bash 2.05b
|
||||||
get_file https://ftp.gnu.org/pub/gnu/bash/bash-2.05b.tar.gz
|
get_file https://ftp.gnu.org/pub/gnu/bash/bash-2.05b.tar.gz
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,15 +97,23 @@ cd bzip2-1.0.8
|
||||||
kaem --file ../bzip2-1.0.8.kaem
|
kaem --file ../bzip2-1.0.8.kaem
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Part 15: bash
|
# Part 15: grep
|
||||||
|
/after/bin/gunzip grep-2.4.tar.gz
|
||||||
|
/after/bin/tar xf grep-2.4.tar
|
||||||
|
cd grep-2.4
|
||||||
|
kaem --file ../grep-2.4.kaem
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Part 16: bash
|
||||||
/after/bin/gunzip bash-2.05b.tar.gz
|
/after/bin/gunzip bash-2.05b.tar.gz
|
||||||
/after/bin/tar xf bash-2.05b.tar
|
/after/bin/tar xf bash-2.05b.tar
|
||||||
cd bash-2.05b
|
cd bash-2.05b
|
||||||
kaem --file ../bash-2.05b.kaem
|
kaem --file ../bash-2.05b.kaem
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# Part 16: m4
|
# Part 17: m4
|
||||||
/after/bin/gunzip m4-1.4.tar.gz
|
/after/bin/gunzip m4-1.4.tar.gz
|
||||||
/after/bin/tar xf m4-1.4.tar
|
/after/bin/tar xf m4-1.4.tar
|
||||||
cd m4-1.4
|
cd m4-1.4
|
||||||
kaem --file ../m4-1.4.kaem
|
kaem --file ../m4-1.4.kaem
|
||||||
|
cd ..
|
||||||
|
|
|
||||||
13
sysa/grep-2.4.kaem
Normal file
13
sysa/grep-2.4.kaem
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
cp ../grep-2.4.mk Makefile
|
||||||
|
/after/bin/make
|
||||||
|
|
||||||
|
# Install
|
||||||
|
/after/bin/cp grep /after/bin/grep
|
||||||
|
/after/bin/chmod 755 /after/bin/grep
|
||||||
|
|
||||||
|
# Test
|
||||||
|
/after/bin/grep --version
|
||||||
23
sysa/grep-2.4.mk
Normal file
23
sysa/grep-2.4.mk
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
PACKAGE=grep
|
||||||
|
VERSION=2.4
|
||||||
|
|
||||||
|
CC = tcc
|
||||||
|
LD = tcc
|
||||||
|
AR = tcc -ar
|
||||||
|
|
||||||
|
CFLAGS = -DPACKAGE=\"$(PACKAGE)\" \
|
||||||
|
-DVERSION=\"$(VERSION)\" \
|
||||||
|
-DHAVE_DIRENT_H=1 \
|
||||||
|
-DHAVE_UNISTD_H=1
|
||||||
|
|
||||||
|
LDFLAGS =
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
|
||||||
|
GREP_SRC = grep dfa kwset obstack regex stpcpy savedir getopt getopt1 search grepmat
|
||||||
|
GREP_OBJECTS = $(addprefix src/, $(addsuffix .o, $(GREP_SRC)))
|
||||||
|
|
||||||
|
all: grep
|
||||||
|
|
||||||
|
grep: $(GREP_OBJECTS)
|
||||||
|
$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@
|
||||||
Loading…
Add table
Add a link
Reference in a new issue