From 106a12a1a7dda23f4067230faf512c7acb1fb1ae Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 30 May 2013 19:21:11 +0100 Subject: [PATCH] Initialize the git submodules when autogen.sh is run. --- README.md | 11 +++-------- autogen.sh | 4 ++++ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3fa11e87..4724b102 100644 --- a/README.md +++ b/README.md @@ -21,22 +21,17 @@ If you are building on the command line, you will also need: 1. ant (e.g. run `sudo apt-get install ant` on a Debian-based distribution) -## Fetching the Sources - -The Android port uses the `ucd-tools` submodule. You can fetch this by running: - - $ git submodule init - $ git submodule update - ## Building eSpeak +1. Generate the build files and get the required git submodules by running: + + $ ./autogen.sh 1. Build the `libttsespeak.so` file by running: $ cd android $ ndk-build 2. Build the `android/res/raw/espeakdata.zip` file by running: - $ ./autogen.sh $ ./configure --prefix=/usr $ make android diff --git a/autogen.sh b/autogen.sh index f14504cc..843a6567 100755 --- a/autogen.sh +++ b/autogen.sh @@ -5,6 +5,10 @@ touch AUTHORS touch NEWS ln -sv README.md README +if [ -d .git ] ; then + git submodule update --init --recursive || exit 1 +fi + aclocal -I m4 || exit 1 libtoolize || exit 1