From 23b40111fcfac5aa4824bd309f468db190be918e Mon Sep 17 00:00:00 2001 From: Michael Tokarev Date: Sun, 13 May 2012 14:59:54 +0400 Subject: [PATCH] ignore m4/ directory and (re)create it in autogen.sh m4/ is used by auto* tools to store (mostly libtool) generated files. Without it being present, autoreconf&Co does not work, and with it present, git mentions untracked files. Fix both. Signed-off-by: Michael Tokarev --- .gitignore | 1 + autogen.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 06dff23..b3c021b 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /depcomp /aclocal.m4 /missing +/m4/ /config.guess /config.sub /install-sh diff --git a/autogen.sh b/autogen.sh index 46a1e97..4b2af12 100755 --- a/autogen.sh +++ b/autogen.sh @@ -3,7 +3,7 @@ rm -rf autom4te.cache rm -f depcomp aclocal.m4 missing config.guess config.sub install-sh rm -f configure config.h.in config.h.in~ m4/libtool.m4 m4/lt*.m4 Makefile.in - +mkdir -p m4 autoreconf -fvi (cd m4 && for i in libtool.m4 lt*.m4; do echo /$i