Skip to content
Snippets Groups Projects
Commit 8c2a67ad authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

import: recognize exports for directory settings

parent 7cae7b9d
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,11 @@ do
echo "Analyzing '$RUN_SCRIPT'" >&2
# Get current directory settings
eval $(perl -lne 'if(/^\s*((?:BUILD|MODEL)_DIR|basedir)=["'\'']?(.*?)["'\'']?\s*$/) {print "OLD_$1='\''$2'\''"}' $RUN_SCRIPT)
eval $(perl -lne '
if(m{^\s*(?:export\s+)?((?:BUILD|MODEL)_DIR|basedir)=["'\'']?(.*?)["'\'']?\s*$}) {
print "OLD_$1='\''$2'\''"
}
' $RUN_SCRIPT)
# New style scripts will make sure that helper scripts are found.
# So no need to hack the . ./* calls (see 4. below)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment