logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

version.awk (272B)


  1. /^VERSION = / { version = $3 }
  2. /^PATCHLEVEL = / { patchlevel = $3 }
  3. /^SUBLEVEL = / { sublevel = $3 }
  4. END {
  5. print "#define LINUX_VERSION_CODE " (version * 65536 + patchlevel * 256 + sublevel)
  6. print "#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))"
  7. }