diff options
author | Jim Meyering <meyering@redhat.com> | 2009-08-03 05:18:10 -0400 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-08-03 15:14:30 +0200 |
commit | 480a489ee4c31cb2f9c9f45941645f05b5f74c67 (patch) | |
tree | f5c37d526739c71d36499e3dc9294e3bb5199e06 /autogen.sh | |
parent | 3572996364d9d24406241dee5155048440053ecf (diff) | |
download | libguestfs-480a489ee4c31cb2f9c9f45941645f05b5f74c67.tar.gz libguestfs-480a489ee4c31cb2f9c9f45941645f05b5f74c67.tar.xz libguestfs-480a489ee4c31cb2f9c9f45941645f05b5f74c67.zip |
maint: use a git submodule for gnulib
* .gitmodules: New file, to track gnulib.
* .gnulib: Submodule directory.
* Makefile.am (EXTRA_DIST): Don't list config.rpath or
gitlog-to-changelog.
* autogen.sh: Adapt to use the new submodule.
* cfg.mk: New file.
(SUBDIRS): Add gnulib/lib and gnulib/tests.
(dist-hook): Reflect new location of getlog-to-changelog.
* configure.ac: Set build-aux/ as AUX_DIR.
Invoke gl_EARLY and gl_INIT.
(AC_CONFIG_FILES): Add gnulib/lib/Makefile and gnulib/tests/Makefile.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -21,6 +21,17 @@ set -e set -v +# 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) +if test "$t" = "$(cat $curr_status 2>/dev/null)"; then + : # good, it's up to date +else + echo running bootstrap... + ./bootstrap && echo "$t" > $curr_status +fi + mkdir -p daemon/m4 autoreconf -i |