From: Mathieu Date: Sat, 11 Mar 2023 07:35:13 +0000 (+0100) Subject: Make Argeo Build able to build itself X-Git-Tag: v2.3.5~112 X-Git-Url: https://git.argeo.org/?a=commitdiff_plain;h=2264ec79d3a53eedc99a8bc14f94d55524b6800e;p=cc0%2Fargeo-build.git Make Argeo Build able to build itself --- diff --git a/.gitignore b/.gitignore index fbfcfb6..d1677f4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .project *.class /bin/ +/sdk.mk +/output diff --git a/configure b/configure index 5d3e45e..e5031d7 100755 --- a/configure +++ b/configure @@ -3,11 +3,16 @@ # We build where we are SDK_BUILD_BASE=$(pwd -P)/output +if [ -z "$SDK_SRC_BASE" ] +then +SDK_SRC_BASE=$(pwd -P) +echo "Script variable SDK_SRC_BASE not set, assuming Argeo Build is building itself and using the local directory" +fi + SDK_MK=$SDK_SRC_BASE/sdk.mk if [ -f "$SDK_MK" ]; then - echo "File $SDK_MK already exists. Remove it in order to configure a new build location:" echo "rm $SDK_MK" exit 1 diff --git a/configure.template b/configure.template new file mode 100755 index 0000000..47f7d96 --- /dev/null +++ b/configure.template @@ -0,0 +1,7 @@ +#!/bin/sh + +# Source are located where this script is +SDK_SRC_BASE="$(cd "$(dirname "$0")"; pwd -P)" + +# Source the configure script +. $SDK_SRC_BASE/sdk/argeo-build/configure