Browse Source

Source the helpers script after changing to project root directory.

So that the main script can be invoked from anywhere.
Yao Wei Tjong 姚伟忠 12 years ago
parent
commit
889aabbbfe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cmake_gcc.sh

+ 3 - 3
cmake_gcc.sh

@@ -20,13 +20,13 @@
 # THE SOFTWARE.
 #
 
-# Define helpers
-. .bash_helpers
-
 # Ensure we are in project root directory
 cd $( dirname $0 )
 SOURCE=`pwd`/Source
 
+# Define helpers
+. .bash_helpers
+
 # Create out-of-source build directory
 cmake -E make_directory Build
 [ $RASPI_TOOL ] && cmake -E make_directory raspi-Build