summaryrefslogtreecommitdiff
path: root/officecfg/CustomTarget_registry.mk
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-06-12 20:26:07 +0300
committerTor Lillqvist <tml@collabora.com>2014-06-12 20:26:07 +0300
commitb736c78ef454f651154bc4a29dc14e99be3f75f5 (patch)
tree5fefca8dfca680c09598ed87803108d09eb7dbb4 /officecfg/CustomTarget_registry.mk
parent1b450cfd425a988157d5a7eff86091ba12bc10f4 (diff)
The truncate command is not portable
Change-Id: Ieadcda1b8e3088c228917c91fbf10b8823203661
Diffstat (limited to 'officecfg/CustomTarget_registry.mk')
-rw-r--r--officecfg/CustomTarget_registry.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/officecfg/CustomTarget_registry.mk b/officecfg/CustomTarget_registry.mk
index 9aa17171f0f2..750716926930 100644
--- a/officecfg/CustomTarget_registry.mk
+++ b/officecfg/CustomTarget_registry.mk
@@ -29,7 +29,7 @@ ifeq ($(HAVE_GNUMAKE_FILE_FUNC),)
$(foreach file,$(officecfg_XCSFILES),\
&& echo "#include <officecfg/$(file).hxx>" >> $@)
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
# pass the stem as space separated path elements and get a set of --stringparam ns<level> <element> in return