1 | # if this file is executed, /bin/sh is used, as we don't start with #!
|
---|
2 | # this should work under ash, bash, zsh, ksh, sh style shells.
|
---|
3 |
|
---|
4 | source ./gs3-setup.sh
|
---|
5 |
|
---|
6 |
|
---|
7 | if test -e gs2build/devel.bash ; then
|
---|
8 | echo ""
|
---|
9 | echo "Sourcing gs2build/devel.bash"
|
---|
10 | cd gs2build ; source ./devel.bash ; cd ..
|
---|
11 | fi
|
---|
12 |
|
---|
13 | # Ever since around MacOS version Monterey, warnings about functions not pre-declared with extern
|
---|
14 | # are turned into errors instead when compiling. We want them behaving like warnings again.
|
---|
15 | # To do so, we set -Wno-error=implicit-function-declaration
|
---|
16 | if test "$GSDLOS" = "darwin"; then
|
---|
17 | if test "x$CFLAGS" = "x" ; then
|
---|
18 | CFLAGS="-Wno-error=implicit-function-declaration"
|
---|
19 | else
|
---|
20 | CFLAGS="-Wno-error=implicit-function-declaration $CFLAGS"
|
---|
21 | fi
|
---|
22 | export CFLAGS
|
---|
23 | fi
|
---|
24 |
|
---|
25 | if test "x$gsopt_noexts" != "x1" ; then
|
---|
26 | if test -e ext ; then
|
---|
27 | for gsdl_ext in ext/* ; do
|
---|
28 | if [ -d $gsdl_ext ] ; then
|
---|
29 | cd $gsdl_ext > /dev/null
|
---|
30 | if test -e gs3-devel.sh ; then
|
---|
31 | source ./gs3-devel.sh
|
---|
32 | elif test -e devel.bash ; then
|
---|
33 | source ./devel.bash
|
---|
34 | fi
|
---|
35 | cd ../..
|
---|
36 | fi
|
---|
37 | done
|
---|
38 | fi
|
---|
39 | fi
|
---|
40 |
|
---|
41 | if test -e local ; then
|
---|
42 | if test -e local/gs3-devel.sh ; then
|
---|
43 | echo ""
|
---|
44 | echo "Sourcing local/gs3-devel.sh"
|
---|
45 | cd local ; source gs3-devel.sh ; cd ..
|
---|
46 | fi
|
---|
47 | fi
|
---|
48 |
|
---|
49 | echo "Adding devel/bin/script to PATH"
|
---|
50 |
|
---|
51 | export PATH=$PATH:"$GSDL3SRCHOME/devel/bin/script"
|
---|
52 |
|
---|
53 | echo ""
|
---|