-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot.platform.sh.debian_linux
executable file
·103 lines (75 loc) · 1.98 KB
/
dot.platform.sh.debian_linux
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
93
94
95
96
97
98
99
100
101
102
# $Id:$
#
# we set some basic environment vatiables.
# they are used in the scripts for the module build
# so be honest here or you could end up with module that does not work
#
# The variables are only needed at build time.
# for runtime you have to check for the platform if it needs
# stuff in so or dll form and make the path an LD_LIBRARY_PATH
# working. this is for every platform different, so consult a local
# expert in that field.
date
echo "set basedir "
# we set the basedir. so this must be used inplace in the correct dir
ATRSHMLOG_BASEDIR="$(pwd)"
export ATRSHMLOG_BASEDIR
echo "set platform"
# we set the platform for build
ATRSHMLOG_PLATFORM=linux
# ATRSHMLOG_PLATFORM=cygwin
# ATRSHMLOG_PLATFORM=mingw
# ATRSHMLOG_PLATFORM=bsd
# ATRSHMLOG_PLATFORM=solaris
export ATRSHMLOG_PLATFORM
# default is 1
# linux fedora 1
# linux centos 2
# linux ubuntu 7
# linux opensuse 8
# linux debian 9
# linux sles 10
# bsd freebsd 3
# bsd openbsd 4
# bsd netbsd 5
# solaris opensolaris11 6
ATRSHMLOG_FLAVOUR=9
export ATRSHMLOG_FLAVOUR
case $ATRSHMLOG_PLATFORM in
linux)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_LINUX_X86_64_GCC=1"
;;
cygwin)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_CYGWIN_X86_64_GCC=1"
;;
mingw)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_MINGW_X86_64_GCC=1"
;;
bsd)
case $ATRSHMLOG_FLAVOUR in
3)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_BSD_AMD64_CLANG=1"
;;
4)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_BSD_AMD64_CLANG=1"
;;
5)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_BSD_AMD64_GCC=1"
;;
*)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_BSD_AMD64_CLANG=1"
;;
esac
;;
solaris)
ATRSHMLOG_PLATFORM_DEFINE="-DATRSHMLOG_PLATFORM_SOLARIS_X86_64_GCC=1"
;;
esac
export ATRSHMLOG_PLATFORM_DEFINE
echo "set path"
# we need a working path. so we assume its the basedir relative in bin
# what makes the thing
PATH="$PATH:$ATRSHMLOG_BASEDIR/bin:."
export PATH
date
# end of file