comparison sources/include.sh @ 1207:4021fb1183d7

Environment sanitizing screwed up the cross-compiler.sh wrapper. Fix it, rename PROGRAM_PREFIX to TOOLCHAIN_PREFIX, and put a guard around sources/include.sh so it's safe to include multiple times.
author Rob Landley <rob@landley.net>
date Mon, 16 Aug 2010 15:00:35 -0500
parents 878dbfe76341
children b4857125acb0
comparison
equal deleted inserted replaced
1206:99c49806ea6d 1207:4021fb1183d7
1 #!/bin/echo "This file is sourced, not run" 1 #!/bin/echo "This file is sourced, not run"
2
3 if ! already_included_this 2>/dev/null
4 then
5
6 already_included_this()
7 {
8 true
9 }
2 10
3 # Set up all the environment variables and functions for a build stage. 11 # Set up all the environment variables and functions for a build stage.
4 # This file is sourced, not run. 12 # This file is sourced, not run.
5 13
6 # Include config and sources/functions.sh 14 # Include config and sources/functions.sh
80 set +h 88 set +h
81 89
82 # Disable internationalization so sort and sed and such can cope with ASCII. 90 # Disable internationalization so sort and sed and such can cope with ASCII.
83 91
84 export LC_ALL=C 92 export LC_ALL=C
93
94 fi # already_included_this