source: main/trunk/greenstone3/gs3-devel.sh

Last change on this file was 37669, checked in by anupama, 12 months ago

I seem to have introduced stray characters in commit somehow.

  • Property svn:executable set to *
File size: 1.3 KB
Line 
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
4source ./gs3-setup.sh
5
6
7if test -e gs2build/devel.bash ; then
8 echo ""
9 echo "Sourcing gs2build/devel.bash"
10 cd gs2build ; source ./devel.bash ; cd ..
11fi
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
16if 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
23fi
24
25if 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
39fi
40
41if 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
47fi
48
49echo "Adding devel/bin/script to PATH"
50
51export PATH=$PATH:"$GSDL3SRCHOME/devel/bin/script"
52
53echo ""
Note: See TracBrowser for help on using the repository browser.