Permalink
Browse files

autogen.sh: Implement autogen.sh script which runs

autoreconf -f -i
git submodule init
git dubmodule update
so we don't need to run them one by one manually.
  • Loading branch information...
1 parent a8f1306 commit c7bb4ada0a6cbaf944dde9efd946e52a01845ec1 @matthiaskrgr matthiaskrgr committed May 29, 2012
Showing with 20 additions and 7 deletions.
  1. +3 −7 INSTALL
  2. +17 −0 autogen.sh
View
@@ -32,14 +32,10 @@ GLM is a header only library that you can get from http://glm.g-truc.net/ if you
===========
If you got the source directly from the Gource.git repository, you will first
-need to run autoreconf to generate the configure script:
+need to run autogen.sh which will generate the configure script and
+initialize and update the submodules.
- autoreconf -f -i
-
-You also need to initialize and update the submodules:
-
- git submodule init
- git submodule update
+ ./autogen.sh
Generic build instructions for Linux/Mac OS:
View
@@ -0,0 +1,17 @@
+#! /bin/sh
+if (autoreconf -f -i) ; then
+ echo "autoreconf ran successfully."
+ echo "Initializing submodules..."
+ if (git submodule init) ; then
+ echo "Updating submodules..."
+ if (git submodule update) ; then
+ echo "Run './configure && make' to continue."
+ else
+ echo "Error: could not update submodules!"
+ fi
+ else
+ echo "Error: could not initialize submodules!"
+ fi
+else
+ echo "Running autoreconf failed, please make sure you have autoconf installed."
+fi

0 comments on commit c7bb4ad

Please sign in to comment.