diff options
author | Toomas Soome <tsoome@me.com> | 2020-05-26 17:46:38 +0300 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2020-06-30 09:43:54 +0300 |
commit | 1326c48877254e828afea8c9f7529f6faf1a1fde (patch) | |
tree | 6041321d807ff724bb93a4903be99976ef6e879d /usr | |
parent | 5f9772673df89384a3fa8f1cbfcccd8d331f83ff (diff) | |
download | illumos-joyent-1326c48877254e828afea8c9f7529f6faf1a1fde.tar.gz |
12790 locale data install should not attempt to copy missing files
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/data/locale/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/src/data/locale/Makefile b/usr/src/data/locale/Makefile index 99ee6a60ef..284f5b0cfa 100644 --- a/usr/src/data/locale/Makefile +++ b/usr/src/data/locale/Makefile @@ -146,8 +146,10 @@ locale/%/$(DTIME): locale/%/stamp $(ROOTDATA): $(ROOTLOCDIRS) $(ROOTCATDIRS) $(DATA) $(RM) $@ - -$(CP) $(@:$(ROOTLIB)/%=%) $@ - $(CHMOD) -f 0444 $@ + if [[ -f $(@:$(ROOTLIB)/%=%) ]]; then \ + $(CP) $(@:$(ROOTLIB)/%=%) $@; \ + $(CHMOD) -f 0444 $@ ; \ + fi %.mo: %.po $(MSGFMT) -o $@ $< |