linux-qubasis

linux oasis port as a qubes template

git clone https://9o.is/git/linux-qubasis.git

commit 70e243c3946e8d66260f08e62de52f5aa221289a
parent f6a13fa70710085bcb706def01af670eb894c115
Author: Jul <jul@9o.is>
Date:   Sat,  8 Nov 2025 00:57:16 -0500

add ninja touch and gzip functions

Diffstat:
Mninja/functions.sh | 22++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/ninja/functions.sh b/ninja/functions.sh @@ -47,9 +47,15 @@ copy() { } cat() { - _out=$1 - shift - build cat $_out $* + build cat $* +} + +touch() { + build touch "$*" +} + +gzip() { + build gzip $* } cflags() { @@ -115,7 +121,7 @@ man() { fi _ninja_fspec $MANDIR/man$_sec/${_out##*/} reg 0644 0 0 $_out - build $_rule $_out $_src + $_rule $_out $_src } exe() { @@ -514,7 +520,7 @@ _ninja_flush_fetch() { fi if [ ! "$_ninja_buffer_fetch" ]; then - build touch $_fetchdir/fetched + touch $_fetchdir/fetched return fi @@ -609,7 +615,7 @@ _ninja_flush_build() { if [ "$_ninja_buffer_build" ] || [ "$_subgens" ]; then build phony $tgtdir/build $_ninja_buffer_build $_subgens else - build touch $outdir/_fetch/build + touch _fetch/build build phony $tgtdir/build $outdir/_fetch/build fi ;; @@ -668,7 +674,7 @@ _ninja_flush_sync() { _ninja_dedup _ninja_buffer_sync $_ninja_buffer_sync build phony "$_ninja_buffer_sync" $outdir/_synced else - build touch $outdir/_synced + touch _synced fi ;; pkg) @@ -755,7 +761,7 @@ _ninja_flush_fspec() { root) build phony $tgtdir/fspec $_subgens;; *) if [ ! "$_srcs" ] && [ ! "$_ninja_buffer_fspec_files" ]; then - build touch $outdir/_fspec/ALL + touch _fspec/ALL else cat _fspec/ALL $_srcs $_ninja_buffer_fspec_files fi