slitaz-tools rev 899
Fix installation of slitaz-tools.mo; untag 5.8.9.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 05 19:14:16 2014 +0300 (2014-07-05) |
parents | cf2238d45cdd |
children | c266b56937c3 |
files | .hgtags Makefile |
line diff
1.1 --- a/.hgtags Sat Jul 05 18:24:31 2014 +0300 1.2 +++ b/.hgtags Sat Jul 05 19:14:16 2014 +0300 1.3 @@ -83,4 +83,3 @@ 1.4 5a8adba12ac2506adbbf0d55aec9f48f4b3ba472 5.8.6 1.5 a056a0139188a840a9bb13b145d4290870741066 5.8.7 1.6 c13caad7497ee652b93a7628d2ed079f3c63c33a 5.8.8 1.7 -cffac58f072bcaf121148e2307d5e2a11cc01c11 5.8.9
2.1 --- a/Makefile Sat Jul 05 18:24:31 2014 +0300 2.2 +++ b/Makefile Sat Jul 05 19:14:16 2014 +0300 2.3 @@ -70,7 +70,7 @@ 2.4 2.5 # Installation 2.6 2.7 -install: msgfmt 2.8 +install: 2.9 install -m 0755 -d $(DESTDIR)/sbin 2.10 install -m 0755 -d $(DESTDIR)/etc 2.11 install -m 0755 -d $(DESTDIR)$(PREFIX)/bin 2.12 @@ -87,15 +87,13 @@ 2.13 done; 2.14 2.15 # Declare all config files. 2.16 - for file in etc/locale.conf etc/keymap.conf etc/TZ; \ 2.17 - do \ 2.18 + for file in etc/locale.conf etc/keymap.conf etc/TZ; do \ 2.19 touch $(DESTDIR)/$$file; \ 2.20 done; 2.21 2.22 # /usr/bin tools. 2.23 for app in tazx startx history editor browser terminal file-manager \ 2.24 - decode frugal startd stopd; \ 2.25 - do \ 2.26 + decode frugal startd stopd; do \ 2.27 install -m 0755 tinyutils/$$app $(DESTDIR)$(PREFIX)/bin; \ 2.28 done; 2.29 2.30 @@ -104,13 +102,14 @@ 2.31 install -m 0755 tinyutils/setmixer $(DESTDIR)$(PREFIX)/sbin 2.32 2.33 # slitaz-tools i18n 2.34 - for l in $(LINGUAS); \ 2.35 - do \ 2.36 - install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \ 2.37 - install -m 0644 po/mo/$$l/slitaz-tools.mo \ 2.38 - $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \ 2.39 + for l in $(LINGUAS); do \ 2.40 + if [ -f "po/mo/$$l/slitaz-tools.mo" ]; then \ 2.41 + install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \ 2.42 + install -m 0644 po/mo/$$l/slitaz-tools.mo \ 2.43 + $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \ 2.44 + fi; \ 2.45 done; 2.46 - 2.47 + 2.48 # Documentation 2.49 cp doc/post-install.txt $(DESTDIR)$(DOCDIR)/slitaz 2.50 # Permissions 2.51 @@ -132,8 +131,7 @@ 2.52 install -m 0644 pixmaps/* $(DESTDIR)$(PREFIX)/share/pixmaps 2.53 2.54 # i18n. 2.55 - for l in $(LINGUAS); \ 2.56 - do \ 2.57 + for l in $(LINGUAS); do \ 2.58 install -m 0755 -d $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \ 2.59 install -m 0644 po/mo/$$l/*box* \ 2.60 $(DESTDIR)$(PREFIX)/share/locale/$$l/LC_MESSAGES; \