]> git.argeo.org Git - gpl/argeo-slc.git/blob - configure
Update Eclipse third-parties. Java 17 now working.
[gpl/argeo-slc.git] / configure
1 #!/bin/sh
2
3 # We build where we are
4 SDK_BUILD_BASE=$(pwd -P)/output
5
6 # Source are located where this script is
7 SDK_SRC_BASE="$(cd "$(dirname "$0")"; pwd -P)"
8
9 SDK_MK=$SDK_SRC_BASE/sdk.mk
10
11 #echo SDK_BUILD_BASE=$SDK_BUILD_BASE
12 #echo SDK_SRC_BASE=$SDK_SRC_BASE
13 #echo SDK_MK=$SDK_MK
14
15 if [ -f "$SDK_MK" ];
16 then
17
18 echo "File $SDK_MK already exists. Remove it in order to configure a new build location:"
19 echo "rm $SDK_MK"
20 exit 1
21
22 else
23
24 # Create build directory, so that it can be used right away
25 # and we check whether we have the rights
26 mkdir -p $SDK_BUILD_BASE
27 if [ -f "$SDK_MK" ];
28 then
29 echo "Cannot create $SDK_BUILD_BASE, SDK configuration has failed."
30 exit 2
31 fi
32
33 # Generate sdk.mk
34 cat > "$SDK_MK" <<EOF
35 SDK_SRC_BASE := $SDK_SRC_BASE
36 SDK_BUILD_BASE := $SDK_BUILD_BASE
37
38 include \$(SDK_SRC_BASE)/branch.properties
39 include \$(SDK_SRC_BASE)/sdk/includes.mk
40 EOF
41
42
43 echo SDK was configured.
44 echo "Base for sources : $SDK_SRC_BASE"
45 echo "Base for builds : $SDK_BUILD_BASE"
46 exit 0
47 fi
48