repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[bcl] Update BCL Linked Size (#17322)
[mono-project.git]
/
sdks
/
builds
/
determine-linux-flavor.sh
blob
a6a27a9133e36c0adc331c04668e193463cc98a0
1
#!/bin/bash
2
if
[
-f
/
etc
/
os-release
];
then
3
.
/
etc
/
os-release
4
FLAVOR
=
$NAME
5
elif
[
-n
"$(which lsb_release)"
];
then
6
FLAVOR
=
$
(
lsb_release
-si
)
7
elif
[
-f
/
etc
/
lsb-release
];
then
8
.
/
etc
/
lsb-release
9
FLAVOR
=
$DISTRIB_ID
10
elif
[
-f
/
etc
/
debian_version
];
then
11
FLAVOR
=
Debian
12
else
13
FLAVOR
=
$
(
uname
-s
)
14
fi
15
16
echo
$FLAVOR