diff options
author | RessLinux BuildPC <oleksak.matus@gmail.com> | 2018-03-11 09:49:28 +0000 |
---|---|---|
committer | xhe <xw897002528@gmail.com> | 2018-03-11 18:14:05 +0800 |
commit | 77f348305900be7388ee8d9ae525a50a1a50e5b8 (patch) | |
tree | de6006db89a6c2cc4501821d7aac20a941a08aac | |
parent | c9ba23c51d216d13ce923971ccf363eb342187f7 (diff) | |
download | gettext-tiny-77f348305900be7388ee8d9ae525a50a1a50e5b8.tar.gz |
Dynamically copy Makefile.in.in
As pointed out in https://github.com/sabotage-linux/gettext-tiny/issues/21
, there're multiple destinations for Makefile.in. We need to figure out
all destinations coded in configure.ac dynamically.
-rwxr-xr-x | src/autopoint.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/autopoint.in b/src/autopoint.in index 2922232..8a1a8c7 100755 --- a/src/autopoint.in +++ b/src/autopoint.in @@ -14,6 +14,12 @@ do dirprefix=${dirprefix%%])*} mkdir -p ${dirprefix} fi + + if [ "${line##*po/Makefile.in}" != "$line" ]; then + poprefix=${line##*[} + poprefix=${poprefix%%po/Makefile.in*} + install -D -m 644 @datadir@/data/autopoint_Makefile.in ./${poprefix}/po/Makefile.in.in + fi done < "configure.ac" touch ./${dirprefix}/config.rpath ABOUT-NLS |