Permalink
Browse files

Merge pull request #8 from matthiaskrgr/autogen

Add autogen.sh
  • Loading branch information...
2 parents a8f1306 + c7bb4ad commit 4c568fef0855d01510529e13886ce838631f2deb @acaudwell committed May 30, 2012
Showing with 20 additions and 7 deletions.
  1. +3 −7 INSTALL
  2. +17 −0 autogen.sh
View
10 INSTALL
@@ -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 4c568fe

Please sign in to comment.