summaryrefslogtreecommitdiff
path: root/readlicense_oo
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2012-04-04 07:16:59 +0000
committerHerbert Dürr <hdu@apache.org>2012-04-04 07:16:59 +0000
commitfc76ac082270cfb8074e7f33b96308dcd5221ea2 (patch)
tree67f534f50a2e27ddc8946b445da308c2beefb308 /readlicense_oo
parenta86c85be74e158c2f90d99bc6ef3f0c8c1d4dc80 (diff)
use CR/LF lineends on LICENSE+NOTICE files on WNT+OS/2
Diffstat (limited to 'readlicense_oo')
-rw-r--r--readlicense_oo/makefile.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/readlicense_oo/makefile.mk b/readlicense_oo/makefile.mk
index 25d7394e5821..a2974b25bd60 100644
--- a/readlicense_oo/makefile.mk
+++ b/readlicense_oo/makefile.mk
@@ -43,6 +43,12 @@ ALL_NOTICE=..$/NOTICE
SUM_LICENSE=$(MISC)$/SUM_LICENSE
SUM_NOTICE=$(MISC)$/SUM_NOTICE
+.IF "$(GUI)"=="WNT" || "$(GUI)"=="OS2"
+ LINEEND_CAT=$(PERL) -p -e 's/\r?\n$$/\r\n/'
+.ELSE
+ LINEEND_CAT=cat
+.ENDIF
+
# ------------------------------------------------------------------
.INCLUDE: target.mk
# ------------------------------------------------------------------
@@ -50,8 +56,8 @@ SUM_NOTICE=$(MISC)$/SUM_NOTICE
ALLTAR: ${SUM_LICENSE} ${SUM_NOTICE}
${SUM_LICENSE} : ${ALL_LICENSE}
- cat $< > $@
+ ${LINEEND_CAT} > $@ $<
${SUM_NOTICE} : ${ALL_NOTICE}
- cat $< > $@
+ ${LINEEND_CAT} > $@ $<