gnucash-docs maint: Fix fragile method of getting an absolute path to the soure directory.
John Ralls
jralls at code.gnucash.org
Tue Aug 6 17:50:37 EDT 2019
Updated via https://github.com/Gnucash/gnucash-docs/commit/ab991372 (commit)
from https://github.com/Gnucash/gnucash-docs/commit/8c0bbccf (commit)
commit ab9913720092fdf9b6fdcdf6a6218f1ae5753b65
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Aug 6 14:49:45 2019 -0700
Fix fragile method of getting an absolute path to the soure directory.
diff --git a/configure.ac b/configure.ac
index 0ce198b..1e2382b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -68,7 +68,7 @@ fi
EXTENDED_SANS=opentype/freefont/FreeSans
EXTENDED_SERIF=opentype/freefont/FreeSerif
EXTENDED_MONO=opentype/freefont/FreeMono
-extended_fontdir=$ac_pwd/$srcdir/fonts
+extended_fontdir=$ac_abs_top_srcdir/fonts
extended_extension=otf
AC_SUBST(EXTENDED_SANS)
AC_SUBST(EXTENDED_SERIF)
@@ -76,6 +76,8 @@ AC_SUBST(EXTENDED_MONO)
AC_SUBST(extended_fontdir)
AC_SUBST(extended_extension)
+dnl Get the absolute path to $srcdir
+ac_abs_top_srcdir=$(cd -- "$srcdir" && pwd)
dnl
dnl Check Japanese TrueType fonts for PDF
dnl
@@ -91,7 +93,7 @@ AC_ARG_WITH([japanese-gothic-ttf],
[specify Japanese Gothic TrueType font (default is ume-tmo3.ttf)])],,)
JAPANESE_MINCHO_TTF=ume-tmo3.ttf
JAPANESE_GOTHIC_TTF=ume-tmo3.ttf
-japanese_fontdir=$ac_pwd/$srcdir/fonts/truetype
+japanese_fontdir=$ac_abs_top_srcdir/fonts/truetype
JAPANESE_MINCHO_TTF_ABS=$japanese_fontdir/$JAPANESE_MINCHO_TTF
JAPANESE_GOTHIC_TTF_ABS=$japanese_fontdir/$JAPANESE_GOTHIC_TTF
Summary of changes:
configure.ac | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
More information about the gnucash-changes
mailing list