officecfg/CustomTarget_registry.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b736c78ef454f651154bc4a29dc14e99be3f75f5
Author: Tor Lillqvist <t...@collabora.com>
Date:   Thu Jun 12 20:26:07 2014 +0300

    The truncate command is not portable
    
    Change-Id: Ieadcda1b8e3088c228917c91fbf10b8823203661

diff --git a/officecfg/CustomTarget_registry.mk 
b/officecfg/CustomTarget_registry.mk
index 9aa1717..7507169 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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to