1
0
mirror of https://github.com/simh/simh.git synced 2026-03-02 17:55:17 +00:00

makefile, SCP: Ignore the presence of , in "uname -a" output

Fix #1164
This commit is contained in:
Mark Pizzolato
2022-10-27 09:07:32 -10:00
parent 65c11e157d
commit c9252d1e42
2 changed files with 2 additions and 2 deletions

View File

@@ -359,7 +359,7 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
$(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H$(GIT_EXTRA_FILES)%nSIM_GIT_COMMIT_TIME $(isodate)" >.git-commit-id)
endif
endif
SIM_BUILD_OS_VERSION= -DSIM_BUILD_OS_VERSION="$(shell uname -a)"
SIM_BUILD_OS_VERSION= -DSIM_BUILD_OS_VERSION="$(shell uname -a|sed 's/,//g')"
LTO_EXCLUDE_VERSIONS =
PCAPLIB = pcap
ifeq (agcc,$(findstring agcc,${GCC})) # Android target build?

2
scp.c
View File

@@ -6954,7 +6954,7 @@ if (flag) {
char buildosversion[2*PATH_MAX+1] = S_xstr(SIM_BUILD_OS_VERSION);
#endif
if ((f = popen ("uname -a", "r"))) {
if ((f = popen ("uname -a | sed 's/,//g'", "r"))) {
memset (osversion, 0, sizeof (osversion));
do {
if (NULL == fgets (osversion, sizeof (osversion)-1, f))