diff sources/variables.sh @ 1816:fb05f99ffcce draft

Collate site-local variables under "MY_XXX" prefix: MY_PATCH_DIR, MY_ROOT_OVERLAY, MY_CROSS_PATH and MY_CROSS_PREFIX.
author Rob Landley <rob@landley.net>
date Sat, 21 Nov 2015 16:44:39 -0600
parents 5ff5fea0ad7a
children
line wrap: on
line diff
--- a/sources/variables.sh	Wed Nov 18 09:18:44 2015 -0600
+++ b/sources/variables.sh	Sat Nov 21 16:44:39 2015 -0600
@@ -53,10 +53,7 @@
 export_if_blank HOSTTOOLS="$BUILD/host"
 export_if_blank WRAPDIR="$BUILD/record-commands"
 
-if [ ! -z "$EXTERNAL_PATCH_DIR" ]
-then
-    export EXTERNAL_PATCH_DIR=$(readlink -e "$EXTERNAL_PATCH_DIR")
-fi
+[ ! -z "$MY_PATCH_DIR" ] && export MY_PATCH_DIR="$(readlink -e "$MY_PATCH_DIR")"
 
 # Set a default non-arch