1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24.IF "$(L10NPROPERTYFILES)"!="" 25ALLTAR : $(MISC)/$(TARGET).pmerge.mk $(L10NPROPERTYFILES) 26 27$(MISC)/$(TARGET).pmerge.mk : $(L10NPROPERTYFILES) 28 29$(L10NPROPERTYFILES) : $(LOCALIZESDF) 30 31.INCLUDE .IGNORE : $(MISC)/$(TARGET).pmerge.mk 32 33.IF "$(alllangiso)"!="$(last_merge)" 34MERGEPHONY:=.PHONY 35.ENDIF # "$(alllangiso)" != "$(last_merge)" 36 37$(CLASSDIR)/$(PACKAGE)/%.properties $(MERGEPHONY) : %.properties 38 @@-$(MKDIRHIER) $(@:d) 39.IF "$(WITH_LANG)"=="" 40 $(COMMAND_ECHO)$(COPY) $< $@ 41.ELSE # "$(WITH_LANG)"=="" 42 @@-$(RM) $@ 43 $(COMMAND_ECHO)@noop $(assign PMERGELIST+:=$(<:f)) 44 $(COMMAND_ECHO)@noop $(assign PDESTDIR:=$(@:d)) 45.ENDIF # "$(WITH_LANG)"=="" 46 47$(MISC)/$(TARGET).pmerge.mk : $(PMERGELIST) 48.IF "$(WITH_LANG)"!="" 49# jpropex command file requirements: 50# - one file per line 51# - no spaces 52# - no empty lines 53# $(uniq ...) to workaround $assign adding the value twice... 54 @noop $(assign PMERGEFILELIST:=$(uniq $(PMERGELIST))) 55 $(COMMAND_ECHO)$(SOLARBINDIR)/jpropex -p $(PRJNAME) -r $(PRJ) -o $(PDESTDIR) -i @$(mktmp $(PMERGEFILELIST:t"\n":s/ //)) -l all -lf $(alllangiso:s/ /,/) -m $(LOCALIZESDF) 56.ENDIF # "$(WITH_LANG)"!="" 57 @-$(RM) $@ 58 $(COMMAND_ECHO)echo last_merge=$(alllangiso) > $@ 59 60.ENDIF # "$(L10NPROPERTYFILES)"!="" 61 62 63