diff options
author | Jim Meyering <meyering@redhat.com> | 2010-02-24 12:01:09 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-02-25 13:35:03 +0100 |
commit | 0f88dade23aeb05db9814c21fa30ef08cc13b39c (patch) | |
tree | 866dfcd7ee40467cbcca0b9c8c926ed52651bf80 /autogen.sh | |
parent | 083b901eb3585e63273fe28214ca5c190fb38f0c (diff) | |
download | libvirt-0f88dade23aeb05db9814c21fa30ef08cc13b39c.tar.gz |
build: make git submodule checking more reliable
* cfg.mk (_curr_status): Accommodate leading "+" or "-" in the output
of git submodule status.
* autogen.sh: Likewise.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 833b1d18d0..9ae8d679d7 100755 --- a/autogen.sh +++ b/autogen.sh @@ -65,7 +65,7 @@ fi # Ensure that whenever we pull in a gnulib update or otherwise change to a # different version (i.e., when switching branches), we also rerun ./bootstrap. curr_status=.git-module-status -t=$(git submodule status) +t=$(git submodule status|sed 's/^[ +-]//;s/ .*//') if test "$t" = "$(cat $curr_status 2>/dev/null)"; then : # good, it's up to date, all we need is autoreconf autoreconf -if |