diff options
| author | ruki <[email protected]> | 2026-03-28 15:46:11 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-03-28 15:46:11 +0800 |
| commit | 1df5ac2921a800c766fc64d4db6a85975c171e32 (patch) | |
| tree | feb30c468c4e89a5c8338b4a90786d97ceed481e /xmake/core/base/linuxos.lua | |
| parent | c86b161f6b27040289c75f3cafe7a863dea737bc (diff) | |
| parent | c08081788e880f32f1835eab49aae5806cb19721 (diff) | |
Merge pull request #7424 from xmake-io/comments
improve comments
Diffstat (limited to 'xmake/core/base/linuxos.lua')
| -rw-r--r-- | xmake/core/base/linuxos.lua | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/xmake/core/base/linuxos.lua b/xmake/core/base/linuxos.lua index d9e018a36..32af1ccad 100644 --- a/xmake/core/base/linuxos.lua +++ b/xmake/core/base/linuxos.lua @@ -66,17 +66,10 @@ function linuxos._uname_r() return uname_r or nil end --- get system name +-- get linux distribution name +-- +-- @return the distribution name string, e.g. "ubuntu", "debian", "archlinux", "fedora" -- --- e.g. --- - ubuntu --- - debian --- - archlinux --- - rhel --- - centos --- - fedora --- - opensuse --- - ... function linuxos.name() local name = linuxos._NAME if name == nil then @@ -138,7 +131,10 @@ function linuxos.name() return name end --- get system version +-- get linux distribution version +-- +-- @return the semver version object +-- function linuxos.version() local version = linuxos._VERSION if version == nil then @@ -198,6 +194,9 @@ function linuxos.version() end -- get linux kernel version +-- +-- @return the semver version object +-- function linuxos.kernelver() local version = linuxos._KERNELVER if version == nil then |
