diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 10:59:16 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-02 10:59:16 +0100 |
commit | c2805aa3ff0ca390553ce8a103d0926a37d960c2 (patch) | |
tree | f98833dc4933c20ac5cd615fad5545de796b7ab1 /makefiles/gmake/guess_env | |
parent | 1d99bd87f762f8a2daad14afda88748c9e3815d6 (diff) | |
download | wolfbones-c2805aa3ff0ca390553ce8a103d0926a37d960c2.tar.gz wolfbones-c2805aa3ff0ca390553ce8a103d0926a37d960c2.tar.bz2 |
first version of a platform.mk.vars cache to speed up the build
Diffstat (limited to 'makefiles/gmake/guess_env')
-rwxr-xr-x | makefiles/gmake/guess_env | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/makefiles/gmake/guess_env b/makefiles/gmake/guess_env index 3e87828..b2704d9 100755 --- a/makefiles/gmake/guess_env +++ b/makefiles/gmake/guess_env @@ -2,10 +2,6 @@ # operating system and major, minor version, more should not be necessary -if test -r "$HOME/guess_env.inc"; then - . "$HOME/guess_env.inc" -else - UNAME_SYSTEM=`(uname -s) 2>/dev/null` UNAME_RELEASE=`(uname -r) 2>/dev/null` UNAME_VERSION=`(uname -v) 2>/dev/null` @@ -121,8 +117,6 @@ if test $COMPILER = 'spro'; then SPRO_MAJOR_VERSION=`echo $SPRO_VERSION | cut -d : -f 1` fi -fi - case "$1" in --platform) echo $PLATFORM ;; @@ -159,9 +153,13 @@ case "$1" in --spro-major-version) echo $SPRO_MAJOR_VERSION ;; - - --all) - cat <<EOF +esac + +echo $PWD >> ~/x + +# regenerate the cache file, otherwise building is far too slow! +if test ! -f makefiles/gmake/platform.mk.vars; then + cat >makefiles/gmake/platform.mk.vars <<EOF ARCH=$ARCH PLATFORM=$PLATFORM OS_MAJOR_VERSION=$OS_MAJOR_VERSION @@ -175,5 +173,4 @@ ICC_MAJOR_VERSION=$ICC_MAJOR_VERSION ICC_MINOR_VERSION=$ICC_MINOR_VERSION SPRO_MAJOR_VERSION=$SPRO_MAJOR_VERSION EOF - ;; -esac +fi |