1
1
mirror of https://git.shadowkat.net/izaya/OC-PsychOS2.git synced 2024-11-24 12:26:11 -05:00

stamp the kernel variant onto the version string

This commit is contained in:
XeonSquared 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/