Skip to content

Commit

Permalink
print linux version
Browse files Browse the repository at this point in the history
  • Loading branch information
igormcoelho committed May 20, 2024
1 parent 32906e6 commit 6611fd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cxxbuild/cxxbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Copyleft 2023 Igor Machado Coelho

import os
import platform
import sys
import json
import subprocess
Expand Down Expand Up @@ -892,6 +893,10 @@ def main():
print("======================================")
print(" welcome to cxxbuild ")
print("======================================")
print(version())
print("os: "+os.name+"; platform: "+platform.system())
print("linux: "+platform.freedesktop_os_release().get("VERSION_CODENAME"))
print("======================================")

# ASSUME '.' as root_path if nothing is passed
if len(sys.argv) == 1:
Expand All @@ -918,7 +923,7 @@ def main():
usage()
exit()

print(version())

build_options_args = []
for i in range(len(sys.argv)):
if (sys.argv[i] == "--src"):
Expand Down

0 comments on commit 6611fd6

Please sign in to comment.