Skip to content

Commit

Permalink
Use SysToolsLib's distrib shell script to identify the Unix distribut…
Browse files Browse the repository at this point in the history
…ion processor
  • Loading branch information
Jean-François Larvoire committed Mar 26, 2021
1 parent 5b42170 commit aa2f903
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion C/SRC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ else ifneq ($(shell ../../Shell/truename -q "$(PWD)"), $(shell ../../Shell/truen
endif

# Identify the OS and processor, and generate an output base directory name from that
needed_before_using_distrib := $(shell chmod +x ../../Shell/distrib)
ifeq "$(OS)" "" # If $(OS) is undefined or empty
OS := $(shell uname -s)
PROC := $(shell uname -p)
PROC := $(shell ../../Shell/distrib processor)# Don't just use uname -p, which is unreliable
MACHINE := $(shell uname -m)
ifeq "$(OS)" "OSF1"
ifeq "$(MACHINE)" "alpha"
Expand Down
3 changes: 2 additions & 1 deletion C/SysLib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ else ifneq ($(shell ../../Shell/truename -q "$(PWD)"), $(shell ../../Shell/truen
endif

# Identify the OS and processor, and generate an output base directory name from that
needed_before_using_distrib := $(shell chmod +x ../../Shell/distrib)
ifeq "$(OS)" "" # If $(OS) is undefined or empty
OS := $(shell uname -s)
PROC := $(shell uname -p)
PROC := $(shell ../../Shell/distrib processor)# Don't just use uname -p, which is unreliable
MACHINE := $(shell uname -m)
ifeq "$(OS)" "OSF1"
ifeq "$(MACHINE)" "alpha"
Expand Down

0 comments on commit aa2f903

Please sign in to comment.