summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRessLinux BuildPC <oleksak.matus@gmail.com>2018-03-11 09:49:28 +0000
committerxhe <xw897002528@gmail.com>2018-03-11 18:14:05 +0800
commit77f348305900be7388ee8d9ae525a50a1a50e5b8 (patch)
treede6006db89a6c2cc4501821d7aac20a941a08aac
parentc9ba23c51d216d13ce923971ccf363eb342187f7 (diff)
downloadgettext-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-xsrc/autopoint.in6
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