]> Devi Nivas Git - cs3210-lab0.git/commitdiff
Add useful tools
authorAdvaith Menon <noreply-git@bp4k.net>
Wed, 14 Jan 2026 21:37:15 +0000 (03:07 +0530)
committerAdvaith Menon <noreply-git@bp4k.net>
Wed, 14 Jan 2026 21:37:15 +0000 (03:07 +0530)
* Add script 'buildall' to perform cmake/make steps
* Add script 'runxv6' to automatically chdir and run the right
  VM

tools/buildall [new file with mode: 0755]
tools/runxv6 [new file with mode: 0755]

diff --git a/tools/buildall b/tools/buildall
new file mode 100755 (executable)
index 0000000..4af1d10
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+mkdir -p build
+cd build
+cmake .. -DCMAKE_BUILD_TYPE=Debug
+make
diff --git a/tools/runxv6 b/tools/runxv6
new file mode 100755 (executable)
index 0000000..7ee03a5
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+cd build
+./xv6-qemu "$@"