Permalink
Browse files

Just a minor modification to setup to prevent multiple setups

  • Loading branch information...
1 parent c4000af commit b8c82797208a73d97f8ba9db63b92b9cc226d32d Martin York committed May 23, 2012
Showing with 16 additions and 8 deletions.
  1. +16 −8 third/setup
View
@@ -1,5 +1,21 @@
#!/bin/bash
+# Need this to unpack some of the packages.
+# sudo apt-get install unzip
+
+#
+# Need this for building
+sudo apt-get install bison flex
+sudo apt-get install libboost-dev libboost-doc
+
+# if we are using this as a sub project
+# Then do not set up the rest.
+# Note it is the responsibility of the parent project to make
+# sure these dependencies are available.
+if [[ "$1" == "subproject" ]]; then
+ exit
+fi
+
ROOT=`pwd`
#
@@ -15,14 +31,6 @@ cd build/third
cd ${ROOT}
-# Need this to unpack some of the packages.
-# sudo apt-get install unzip
-
-#
-# Need this for building
-sudo apt-get install bison flex
-sudo apt-get install libboost-dev libboost-doc
-
#
# If you want to use your own version of boost set USE_INSTALLED_BOOST

0 comments on commit b8c8279

Please sign in to comment.