linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 771afbe67dd1b6a175186eb44344a02ddae078c9 parent 7bc9c222f4e35342649204f99318d9922fa5f894 Author: Jul <jul@9o.is> Date: Fri, 7 Nov 2025 05:22:01 -0500 add ninja copy function Diffstat:
| M | ninja/functions.sh | | | 4 | ++++ |
| M | pkg/e2fsprogs/gen.sh | | | 2 | +- |
| M | pkg/pcre/gen.sh | | | 2 | +- |
| M | pkg/vis/gen.sh | | | 10 | +++++----- |
| M | pkg/xen/gen.sh | | | 8 | ++++---- |
5 files changed, 15 insertions(+), 11 deletions(-)
diff --git a/ninja/functions.sh b/ninja/functions.sh @@ -42,6 +42,10 @@ build() { printf 'build %s: %s %s\n' "$_v2" "$_v1" "$_vs" >> "$_ninja_writepath" } +copy() { + build copy $1 ${2-$1} +} + cflags() { setv cflags '$cflags' "$*" } diff --git a/pkg/e2fsprogs/gen.sh b/pkg/e2fsprogs/gen.sh @@ -55,7 +55,7 @@ subst _et/ext2_err.et lib/ext2fs/ext2_err.et.in et $outdir/_et/ext2_err.et _c/ext2_err.c include/ext2fs/ext2_err.h et $srcdir/lib/support/prof_err.et _c/prof_err.c _include/support/prof_err.h -build copy include/ext2fs/ext2_types.h $dir/ext2_types.h +copy include/ext2fs/ext2_types.h $dir/ext2_types.h host() { exe gen_crc32ctable lib/ext2fs/gen_crc32ctable.c diff --git a/pkg/pcre/gen.sh b/pkg/pcre/gen.sh @@ -18,7 +18,7 @@ build sed include/pcre.h pcre.h.in bind expr '-e s,@PCRE_MAJOR@,8, -e s,@PCRE_MINOR@,43, -e s,@PCRE_PRERELEASE@,, -e s,@PCRE_DATE@,2019-02-23,' include $outdir/include/pcre.h -build copy pcre_chartables.c pcre_chartables.c.dist +copy pcre_chartables.c pcre_chartables.c.dist lib libpcre.a " pcre_byte_order.c diff --git a/pkg/vis/gen.sh b/pkg/vis/gen.sh @@ -25,7 +25,7 @@ cflags " -Wno-missing-field-initializers " -build copy _include/config.h config.def.h +copy _include/config.h config.def.h dep " $outdir/_include/config.h @@ -71,9 +71,9 @@ exe vis " exe vis-digraph vis-digraph.c exe vis-menu vis-menu.c -build copy vis-complete vis-complete -build copy vis-clipboard vis-clipboard -build copy vis-open vis-open +copy vis-complete +copy vis-clipboard +copy vis-open visman() { build sed _man/$1 man/$1 @@ -96,7 +96,7 @@ visman vis-menu.1 visman vis-open.1 for f in $(cat $DIR/lua.txt | xargs); do - build copy lua/$f lua/$f + copy lua/$f reg $outdir/lua/$f /share/vis/$f done diff --git a/pkg/xen/gen.sh b/pkg/xen/gen.sh @@ -54,7 +54,7 @@ xen_custom_headers() { for x in $*; do in=$dir/include/$x out=$outdir/include/$x - build copy $out $in + copy $out $in headers $out done } @@ -63,7 +63,7 @@ xen_sys_headers() { for x in $*; do in=$srcdir/tools/include/xen-sys/Linux/$x out=$outdir/include/xen/sys/$x - build copy $out $in + copy $out $in headers $out done } @@ -72,7 +72,7 @@ xen_tools_headers() { for x in $*; do in=$srcdir/tools/include/$x out=$outdir/include/$x - build copy $out $in + copy $out $in headers $out done } @@ -81,7 +81,7 @@ xen_headers() { for x in $*; do in=$srcdir/xen/include/public/$x out=$outdir/include/xen/$x - build copy $out $in + copy $out $in sync $in headers $out done