Kaydet (Commit) b736c78e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

The truncate command is not portable

Change-Id: Ieadcda1b8e3088c228917c91fbf10b8823203661
üst 1b450cfd
...@@ -29,7 +29,7 @@ ifeq ($(HAVE_GNUMAKE_FILE_FUNC),) ...@@ -29,7 +29,7 @@ ifeq ($(HAVE_GNUMAKE_FILE_FUNC),)
$(foreach file,$(officecfg_XCSFILES),\ $(foreach file,$(officecfg_XCSFILES),\
&& echo "#include <officecfg/$(file).hxx>" >> $@) && echo "#include <officecfg/$(file).hxx>" >> $@)
else else
mv $(call var2file,$(shell mkdir -p $(dir $@) && truncate -s 0 $@.tmp && echo $@.tmp),100,$(foreach file,$(officecfg_XCSFILES),$(call officecfg_geninclude,$(file)))) $@ mv $(call var2file,$(shell mkdir -p $(dir $@) && cat /dev/null >$@.tmp && echo $@.tmp),100,$(foreach file,$(officecfg_XCSFILES),$(call officecfg_geninclude,$(file)))) $@
endif endif
# pass the stem as space separated path elements and get a set of --stringparam ns<level> <element> in return # pass the stem as space separated path elements and get a set of --stringparam ns<level> <element> in return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment