From d89186b48f2745a2ad1549379110a0cd9db32750 Mon Sep 17 00:00:00 2001 From: Matt Watson Date: Wed, 14 Jan 2015 17:07:03 -0800 Subject: Don't set origin remote in autogen.sh That's not really in the scope of things autogen.sh should be doing. We should leave the remotes to whoever clones the thing to set up as they please. [endlessm/eos-sdk#2627] --- autogen.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index bc5d99d..e4a7ecc 100755 --- a/autogen.sh +++ b/autogen.sh @@ -14,7 +14,6 @@ test -f $FILE_MUST_EXIST || { exit 1 } -git remote set-url origin http://github.com/endlessm/eos-sdk.git git submodule init . git submodule update --recursive -- cgit v1.2.3 From 32a7fe56651cb2833d4a8c7b3604d48e379ed780 Mon Sep 17 00:00:00 2001 From: Matt Watson Date: Wed, 14 Jan 2015 17:08:04 -0800 Subject: Only update jasmine submodule if a git checkout A little safer, will make it possible to run autogen when building from a tarball or something like that [endlessm/eos-sdk#2627] --- autogen.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index e4a7ecc..aed1956 100755 --- a/autogen.sh +++ b/autogen.sh @@ -14,8 +14,11 @@ test -f $FILE_MUST_EXIST || { exit 1 } -git submodule init . -git submodule update --recursive +# Clone and update Jasmine submodule if this is a Git checkout +if test -d .git; then + git submodule init . + git submodule update --recursive +fi # GNU gettext automake support doesn't get along with git # https://bugzilla.gnome.org/show_bug.cgi?id=661128 -- cgit v1.2.3