[Libreoffice-commits] .: readlicense_oo/util

Andras Timar timar at kemper.freedesktop.org
Tue Jan 18 14:08:43 PST 2011


 readlicense_oo/util/makefile.pmk |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit ccf26314e5e181d239d3ad1b7f5231dbe50c81e2
Author: Andras Timar <timar at fsf.hu>
Date:   Tue Jan 18 23:05:50 2011 +0100

    readme formatting - fdo#32741
    
    * using CRLF instead of LF on WIN platform
    * word wrap at column 75 for better readability

diff --git a/readlicense_oo/util/makefile.pmk b/readlicense_oo/util/makefile.pmk
index 2e072f1..67f7ec5 100755
--- a/readlicense_oo/util/makefile.pmk
+++ b/readlicense_oo/util/makefile.pmk
@@ -59,6 +59,12 @@ $(SYSTEXTDOCS) : $(MISC)$/readme_text.xsl
     --stringparam os1 $(OS)	--stringparam gui1 $(GUI)	--stringparam com1  $(COM) \
     --stringparam cp1 $(CPUNAME)	--stringparam type text	--stringparam lang1 $(@:b:s/readme_//:s/README_//) \
     $<	$(MERGEDXRM)
+    fold -s -w 75 < $@ > $@.new
+    mv $@.new $@
+
+.IF "$(GUI)"=="WNT"
+    $(PERL) -pi -e 's/\n/\r\n/' $@
+.ENDIF                 # "$(GUI)"=="WNT"
 
 .IF "$(GUI)"=="UNX"
     chmod g+w $(MISC)$/$(GUI)


More information about the Libreoffice-commits mailing list