logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: 995b307746340db5a569d8c0f35f3a9938838d46
parent d7116615c1f14c90a5d30088910a8f62e853ae89
Author: Michael Forney <mforney@mforney.org>
Date:   Sat, 24 Jul 2021 18:04:04 -0700

Move shutdown helper to sinit package

Diffstat:

Mpkg/sinit/gen.lua5++++-
Rsrc/shutdown.c -> pkg/sinit/shutdown.c0
Msrc/gen.lua1-
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pkg/sinit/gen.lua b/pkg/sinit/gen.lua @@ -1,5 +1,5 @@ cflags{ - '-std=c99', '-Wall', '-Wextra', + '-std=c99', '-Wall', '-Wpedantic', '-D _POSIX_C_SOURCE=200809L', string.format([[-D 'PREFIX="%s"']], config.prefix), '-I $dir', @@ -9,4 +9,7 @@ file('bin/sinit', '755', exe('sinit', {'sinit.c'})) sym('bin/init', 'sinit') man{'sinit.8'} +build('cc', '$outdir/shutdown.c.o', '$dir/shutdown.c') +file('libexec/shutdown', '755', exe('shutdown', {'shutdown.c.o'})) + fetch'git' diff --git a/src/shutdown.c b/pkg/sinit/shutdown.c diff --git a/src/gen.lua b/src/gen.lua @@ -5,4 +5,3 @@ cflags{ file('libexec/applyperms', '755', exe('applyperms', {'applyperms.c'})) file('libexec/mergeperms', '755', exe('mergeperms', {'mergeperms.c'})) -file('libexec/shutdown', '755', exe('shutdown', {'shutdown.c'}))