linux-qubasis

linux oasis port as a qubes template

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

commit f60a3029ec4d6c875a6aca9d8fc3fde851c722ce
parent 51fdfc2b6444143bb0d624124fd9bfa56aaea0e4
Author: Jul <jul@9o.is>
Date:   Tue, 15 Jul 2025 16:19:50 -0400

allow build to skip cleaning git submodules

Diffstat:
Mbuild | 5+++++
Mpkg/st/build | 12+++++++-----
2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/build b/build @@ -27,6 +27,8 @@ display_help() { run_all=false targets=() +export skip_clean=false + if [ "$#" -eq 0 ]; then echo "Error: No arguments provided." display_help @@ -38,6 +40,9 @@ for arg in "$@"; do --all|-a) run_all=true ;; + --skip-clean|-s) + skip_clean=true + ;; --help|-h) display_help exit 0 diff --git a/pkg/st/build b/pkg/st/build @@ -8,12 +8,14 @@ set -euo pipefail gitref="98610fcd" repodir="$srcdir/repo" -git -C "$repodir" clean -dx -git -C "$repodir" reset --hard "$gitref" +if [ "$skip_clean" != "true" ]; then + git -C "$repodir" clean -dx + git -C "$repodir" reset --hard "$gitref" -for patch in $srcdir/patches/*.patch; do - git -C "$repodir" am "$patch" -done + for patch in $srcdir/patches/*.patch; do + git -C "$repodir" am "$patch" + done +fi rm -rf "$outdir" cp "$srcdir/config.h" "$repodir"