diff options
author | Matúš Olekšák <oleksak.matus@gmail.com> | 2018-03-07 15:03:49 +0100 |
---|---|---|
committer | xhe <xw897002528@gmail.com> | 2018-03-11 18:13:40 +0800 |
commit | 48c77ec11c316e0c8e4d163b3aba58034ba07c66 (patch) | |
tree | 570746b9472c7b2d8e958a5ad089cf1943505811 | |
parent | 69ba3c3e333e2f1fed310052074e73e965ada1bc (diff) | |
download | gettext-tiny-48c77ec11c316e0c8e4d163b3aba58034ba07c66.tar.gz |
Added AC_CONFIG_AUX_DIR support for autopoint
To solve https://github.com/sabotage-linux/gettext-tiny/issues/18,
config.rpath should be placed at the right place asked by configure.ac,
as well as ABOUT-NLS.
-rwxr-xr-x | src/autopoint.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/autopoint.in b/src/autopoint.in index a7ddc51..dca1c81 100755 --- a/src/autopoint.in +++ b/src/autopoint.in @@ -6,7 +6,17 @@ for i in $m4src/*.m4 ; do cp -f $i m4/ done -touch config.rpath ABOUT-NLS +dirprefix="" +while read line +do + if [ "${line##*AC_CONFIG_AUX_DIR}" != "$line" ]; then + dirprefix=${line##*([} + dirprefix=${dirprefix%%])*} + mkdir -p ${dirprefix} + fi +done < "configure.ac" + +touch ./${dirprefix}/config.rpath ./${dirprefix}/ABOUT-NLS for i in intl/Makefile.in po/Makefile.in.in ; do install -D -m 644 @datadir@/data/autopoint_Makefile.in "$i" |