mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
defs.mk, get-os.sh: Define OSTYPE as linux on Linux
The environment variable OSTYPE contains different values on Linux: Linux on OpenSUSE and linux-gnu on RHEL / CentOS Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
19e4095c94
commit
8d30bbf748
2 changed files with 6 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ endif
|
||||||
GET_OS_SH ?= /bin/bash $(MOD_SCRIPT_DIR)/get-os.sh
|
GET_OS_SH ?= /bin/bash $(MOD_SCRIPT_DIR)/get-os.sh
|
||||||
OS ?= $(shell $(GET_OS_SH))
|
OS ?= $(shell $(GET_OS_SH))
|
||||||
OS_NAME ?= $(shell $(GET_OS_SH) name)
|
OS_NAME ?= $(shell $(GET_OS_SH) name)
|
||||||
|
OSTYPE ?= $(shell $(GET_OS_SH) type)
|
||||||
|
|
||||||
CREATE_DEVEL ?= true
|
CREATE_DEVEL ?= true
|
||||||
#COMPILER_SUITE ?= clang
|
#COMPILER_SUITE ?= clang
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,11 @@ cmd_name()
|
||||||
echo ${nv%%-*}
|
echo ${nv%%-*}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd_type()
|
||||||
|
{
|
||||||
|
echo linux
|
||||||
|
}
|
||||||
|
|
||||||
# --- here we go
|
# --- here we go
|
||||||
|
|
||||||
myname=`basename $0`
|
myname=`basename $0`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue