]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
autogen: Handle case when libvirt's submodule
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 19 Jul 2013 07:07:56 +0000 (09:07 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 19 Jul 2013 11:45:22 +0000 (13:45 +0200)
Currently, in the autogen.sh script we check whether .git is an existing
directory in which case bootstrap is run. However, if libvirt is a
submodule, then the .git is just a file (with reference to the topmost
.git directory). However, our submodule routines work well. So there's
no real reason why we should prohibit users to build libvirt from
submodule.

autogen.sh

index 42e56082f302029060df174dc79a8511ef962556..f7c2022e4f166bc52f412a4edb9b9bc429ea1490 100755 (executable)
@@ -64,7 +64,7 @@ bootstrap_hash()
 # like to run 'git clean -x -f po' to fix it; but only ./bootstrap regenerates
 # the required file po/Makevars.
 # Only run bootstrap from a git checkout, never from a tarball.
-if test -d .git; then
+if test -d .git || -f .git; then
     curr_status=.git-module-status t=
     if test "$no_git"; then
         t=no-git