[gtk-doc-stub] gtkdocize.in: ensure that m4 directory exists
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc-stub] gtkdocize.in: ensure that m4 directory exists
- Date: Tue, 30 Sep 2014 13:01:53 +0000 (UTC)
commit 1dea266593edb766d6d898c79451ef193eb17cfa
Author: Andreas Müller <schnitzeltony googlemail com>
Date: Tue Sep 30 14:12:22 2014 +0200
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>
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/ ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]