stamp the kernel variant onto the version string

This commit is contained in:
Izaya 2023-08-01 20:44:14 +10:00
parent ae634bc52e
commit 7849fca4a0

View File

@ -1,10 +1,10 @@
#!/bin/bash
LUA=${LUA:-lua}
KVAR=${1:-lua}
KVAR=${1:-base}
rm -r target/*
mkdir -p target/doc &>/dev/null
$LUA build.lua kcfg/$KVAR.cfg target/init.lua
echo _OSVERSION=\"PsychOS 2.0a3-$(git rev-parse --short HEAD)\" > target/version.lua
echo _OSVERSION=\"PsychOS 2.0a3-$(git rev-parse --short HEAD)-$KVAR\" > target/version.lua
cat target/version.lua target/init.lua > target/tinit.lua
mv target/tinit.lua target/init.lua
cp -r service/ lib/ cfg/ exec/ target/