diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2014-09-30 14:12:22 +0200 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2014-09-30 09:01:32 -0400 |
commit | 1dea266593edb766d6d898c79451ef193eb17cfa (patch) | |
tree | 3ef98adc8ea5978bf07d7412d42144153d347d2d | |
parent | 3dfd0a09de696ec8c544762747f8a0f77153622e (diff) | |
download | gtk-doc-stub-1dea266593edb766d6d898c79451ef193eb17cfa.tar.gz |
gtkdocize.in: ensure that m4 directory exists
Some packages set AC_CONFIG_MACRO_DIR without shipping macros. These end up in errors
like
| ln: target 'm4/' is not a directory: No such file or directory
| cp: cannot create regular file 'm4/': Not a directory
Note: This error does not occure e.g when libtoolize is run before because it
creates macro directory.
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
-rw-r--r-- | gtkdocize.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtkdocize.in b/gtkdocize.in index 93d4acc..b33fa31 100644 --- a/gtkdocize.in +++ b/gtkdocize.in @@ -102,6 +102,7 @@ fi # the correct flags must be passed to aclocal for it to find the macro. m4dir=`cat "$configure" | grep '^AC_CONFIG_MACRO_DIR' | sed -n -e 's/AC_CONFIG_MACRO_DIR(\([^()]*\))/\1/p' | sed -e 's/^\[\(.*\)\]$/\1/' | sed -e 1q` if test -n "$m4dir"; then + mkdir -p $m4dir rm -f $m4dir/gtk-doc.m4 if test "$copy" = yes; then cp -f $datadir/aclocal/gtk-doc.m4 $m4dir/ || |