linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit b1dacace958e50e2fb0c2dceb39baf0f030b2843 parent 5245c6e6fec26b331685791effc95d312e58db23 Author: Jul <jul@9o.is> Date: Wed, 17 Sep 2025 22:56:00 +0800 add bestline to rc shell Diffstat:
| M | .gitmodules | | | 5 | +++++ |
| M | gen.sh | | | 1 | + |
| A | pkg/bestline/gen.sh | | | 9 | +++++++++ |
| A | pkg/bestline/repo | | | 1 | + |
| M | pkg/rc/gen.sh | | | 6 | +++++- |
5 files changed, 21 insertions(+), 1 deletion(-)
diff --git a/.gitmodules b/.gitmodules @@ -89,3 +89,8 @@ [submodule "sinit"] path = pkg/sinit/repo url = git://git.suckless.org/sinit + ignore = all +[submodule "bestline"] + path = pkg/bestline/repo + url = https://github.com/jart/bestline + ignore = all diff --git a/gen.sh b/gen.sh @@ -20,6 +20,7 @@ include $basedir/ninja/rules.ninja subgen pkg/abduco subgen pkg/awk subgen pkg/b3sum +subgen pkg/bestline subgen pkg/byacc subgen pkg/e2fsprogs subgen pkg/fspec-sync diff --git a/pkg/bestline/gen.sh b/pkg/bestline/gen.sh @@ -0,0 +1,9 @@ +fetch git + +cflags " + -std=c99 + -Wno-unused-variable +" + +lib bestline.a bestline.c +headers bestline.h diff --git a/pkg/bestline/repo b/pkg/bestline/repo @@ -0,0 +1 @@ +Subproject commit 5a0bc4bcca0cd912d1671c2f71229e507b4bf632 diff --git a/pkg/rc/gen.sh b/pkg/rc/gen.sh @@ -5,10 +5,12 @@ cflags " -D _POSIX_C_SOURCE=200112L -I $dir -I $outdir/_include + -I $pkgdir/bestline/include -Wno-implicit-fallthrough -Wno-implicit-function-declaration -Wno-clobbered -Wno-unused-parameter + -Wno-sign-compare " rule mkstatval '$hostdir/mkstatval >$out' @@ -26,13 +28,14 @@ build mksignal '$outdir/_include/sigmsgs.h $outdir/_c/sigmsgs.c' '|' $hostdir/mk build mkstatval $outdir/_include/statval.h '|' $hostdir/mkstatval dep " + bestline/headers $outdir/_include/statval.h $outdir/_include/sigmsgs.h " exe rc " builtins.c - edit-null.c + edit-bestline.c except.c exec.c fn.c @@ -62,6 +65,7 @@ exe rc " walk.c which.c $outdir/_c/sigmsgs.c + $pkgdir/bestline/bestline.a " bin rc