-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper.sh
More file actions
executable file
·92 lines (82 loc) · 2.25 KB
/
Copy pathhelper.sh
File metadata and controls
executable file
·92 lines (82 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/bin/sh
set -e
if [ -z "$PLATFORM" ]; then
case "$(uname -s)" in
Darwin) OS=apple-darwin10.10 ;;
*Linux) OS=pc-linux-gnu ;;
CYGWIN_NT*|MINGW*)
EXE=.exe
OS=w64-mingw32
;;
*)
echo "Unsupported OS: $(uname -s)"
exit 1
;;
esac
case "$(uname -m)" in
*x86_64*) ARCH=x86_64 ;;
*86*) ARCH=x86 ;;
Power*) ARCH=powerpc ;;
arm64) ARCH=arm64 ;;
*)
echo "Unsupported ARCH: $(uname -m)"
exit 1
;;
esac
PLATFORM="${ARCH}-${OS}"
fi
TOP=`pwd`
PREFIX=$TOP/work/$PLATFORM/kit
case $1 in
platform)
echo $PLATFORM
;;
environment)
echo "# Build environment:"
echo "# Generated at: `date --iso-8601=seconds 2>/dev/null || date +"%Y-%m-%dT%H:%M:%S%z"`"
echo
if command -v cygcheck >/dev/null 2>&1; then
echo "\$ cygcheck --version"
cygcheck --version
echo
echo "\$ cmd /c ver"
cmd /c "ver" | tr -d '\r'
echo
elif command -v sw_vers >/dev/null 2>&1; then
echo "\$ sw_vers -productName"
sw_vers -productName 2>&1
echo
echo "\$ sw_vers -productVersion"
sw_vers -productVersion 2>&1
echo
if command -v pkgutil >/dev/null 2>&1; then
echo
echo "\$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables"
pkgutil --pkg-info=com.apple.pkg.CLTools_Executables 2>&1
echo
fi
elif [ -e /etc/redhat-release ]; then
echo "\$ cat /etc/redhat-release"
cat /etc/redhat-release
echo
elif [ -e /etc/lsb-release ]; then
echo "\$ cat /etc/lsb-release"
cat /etc/lsb-release
echo
fi
echo "\$ uname -a"
uname -a
echo
echo "\$ $CC --version"
$CC --version 2>&1
echo
echo "\$ $CXX --version"
$CXX --version 2>&1
echo
if command -v ldd >/dev/null 2>&1; then
echo "\$ ldd --version"
ldd --version 2>&1
echo
fi
;;
esac