# HG changeset patch
# User Leif Leonhardy <not.really@online.de>
# Date 1310012314 7200
# Node ID 7be38304209ccf0ccb32ee5bb1782f00abc9c05a
# Parent eb463c4f45e2afcc6d083d0df24e5e5d7166661f
#11021: Fix BUILD not getting set when sageenv is sourced a second time by a different script.
This bug was introduced (or became effective) by #10469, which implemented
sourcing sageenv (effectively) only once.
sagespkg relies on BUILD being set (to "build"), so will fail if it is
called indirectly through sagesage, which will already have sourced
sageenv.
diff r eb463c4f45e2 r 7be38304209c sageenv
a

b


126  126  fi 
127  127  
128  128  # Setting Sagerelated location environment variables. 
129   BUILD=build 
 129  BUILD=build && export BUILD 
130  130  SAGE_PACKAGES="$SAGE_ROOT/spkg" && export SAGE_PACKAGES 
131  131  SAGE_LOCAL="$SAGE_ROOT/local" && export SAGE_LOCAL 
132  132  SAGE_DATA="$SAGE_ROOT/data" && export SAGE_DATA 