summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <timar@fsf.hu>2011-01-18 23:05:50 +0100
committerAndras Timar <timar@fsf.hu>2011-01-18 23:08:23 +0100
commitccf26314e5e181d239d3ad1b7f5231dbe50c81e2 (patch)
treea9ad4a62614b4356ad408b39891cfa400535f4e7
parent1996d06c53d70b912f516b6d191bf23f0440155d (diff)
readme formatting - fdo#32741
* using CRLF instead of LF on WIN platform * word wrap at column 75 for better readability
-rwxr-xr-xreadlicense_oo/util/makefile.pmk6
1 files changed, 6 insertions, 0 deletions
diff --git a/readlicense_oo/util/makefile.pmk b/readlicense_oo/util/makefile.pmk
index 2e072f1b74..67f7ec51d2 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)