Debian Codegraph @

scripts/os

raw symbols ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/bin/sh
2
3 if [ "X$OS" != "X" ] && echo "$OS" | grep '`' > /dev/null
4 then
5 OS=
6 fi
7
8 if [ "X$OS" = "X" ]
9 then OS=bloat-os
10 MACHINE=`uname -m | sed -e 's/ //g' | sed -e 's?/?-?g'`
11 SYSTEM=`uname -s | sed -e 's/ //g' | sed -e 's?/?-?g'`
12 OS="${MACHINE}-${SYSTEM}"
13 if [ -f ../scripts/gnu-os ]
14 then OS=`../scripts/gnu-os | sed s/unknown-//`
15 fi
16 if [ -f ../../scripts/gnu-os ]
17 then OS=`../../scripts/gnu-os | sed s/unknown-//`
18 fi
19 fi
20 echo $OS