Software /
code /
prosody
Comparison
prosodyctl @ 9826:bdc2a024933b
prosodyctl: about: Report the current operating system according to uname
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Dec 2018 18:02:56 +0100 |
parent | 9798:7ce7ee9cd1c5 |
child | 9857:3af3a702c54c |
comparison
equal
deleted
inserted
replaced
9825:5ccce16c6449 | 9826:bdc2a024933b |
---|---|
361 hgrepo = hgrepo == "010452cfaf53" and "prosody-modules"; | 361 hgrepo = hgrepo == "010452cfaf53" and "prosody-modules"; |
362 return path..(hgid and " - "..(hgrepo or "HG").." rev: "..hgid or "") | 362 return path..(hgid and " - "..(hgrepo or "HG").." rev: "..hgid or "") |
363 .."\n "; | 363 .."\n "; |
364 end))); | 364 end))); |
365 print(""); | 365 print(""); |
366 local have_pposix, pposix = pcall(require, "util.pposix"); | |
367 if have_pposix and pposix.uname then | |
368 print("# Operating system"); | |
369 local uname, err = pposix.uname(); | |
370 print(uname and uname.sysname .. " " .. uname.release or "Unknown POSIX", err or ""); | |
371 print(""); | |
372 end | |
366 print("# Lua environment"); | 373 print("# Lua environment"); |
367 print("Lua version: ", _G._VERSION); | 374 print("Lua version: ", _G._VERSION); |
368 print(""); | 375 print(""); |
369 print("Lua module search paths:"); | 376 print("Lua module search paths:"); |
370 for path in package.path:gmatch("[^;]+") do | 377 for path in package.path:gmatch("[^;]+") do |