~rkta/sbase

Add test stage in builds
Make clean before building with tcc
Add build manifests
Enable some warnings
Build with debug symbols
090490b8 — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Posixfy the Makefile
ddde8021 — Roberto E. Vargas Caballero 1 year, 8 days ago
Simplify install/uninstall
6285c22a — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Remove unneeded dependency

Make will search in the catalogue of rules for a way to
update the target, and in case of finding the dependency
it will apply the rule without a need of specifying that
dependency.
986bbb92 — Roberto E. Vargas Caballero 1 year, 8 days ago
sbase-box: Add -i flag
58ec1f62 — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Move getconf.sh to scripts

The scripts directory is meant to contain all the scripts needed
in the build.
ba2fc773 — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Simplify dist target

We can get rid of the SRC variable if we use shell wildcards.
89339875 — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Use ARFLAGS when creating libraries

ARFLAGS has the expected value for the toolchain used.
bb4a01e8 — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Remove LIBUTIL and LIBUTF

They were just hidding the actual names of te libraries and as
they were added to OBJ they were listed twice in the clean
command.
0f542cab — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Remove LIBUTFSRC and LIBUTILSRC

These variables were used only to generate the variables
LIBUTFOBJ and LIBUTILOBJ.
3c36fb41 — Roberto E. Vargas Caballero 1 year, 8 days ago
sbase-box: Simplify Makefile rule

The Makefile rule was too complex and these cases is better to just
move it to a script where will be eassier to use sed properly
and not looping over all the files 4 times.
8ca12835 — Roberto E. Vargas Caballero 1 year, 8 days ago
build: Remove .gitignore rule

It is not needed because it is just easier to maintain
the gitignore file.
d3780956 — Roberto E. Vargas Caballero 1 year, 12 days ago
ed: Deal signals in a reliable way

The signal handlers were calling longjmp() but as the code was calling
non signal safe functions the behaviour was very unpredictable generating
segmentation faults and dead lock. This commit changes the signal handlers
to only set a variable that is checked in safe places where long loops
happen.
Ensure commands are followed by a blank

POSIX.1-2017 demands in Shell & Utilities under 'Commands in ed':
The e, E, f, r, and w commands shall take an optional file parameter,
separated from the command letter by one or more <blank> characters.

Ensure at least one <blank> character (as defined for the POSIX locale)
is present or error out.

Signed-off-by: Rene Kita <mail@rkta.de>
67a00c86 — Roberto E. Vargas Caballero 1 year, 12 days ago
ed: Open output file for writing

Fopen() and Popen() were open as read streams, but we were writing
in both cases. In the same way, the FILE pointer returned by popen()
was close with fclose() that can lead to file descriptor leaks and
zombie processes.
Next