2003-04-28 11:18:28 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-10 03:03:21 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
2010-02-12 08:01:35 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
2003-04-28 11:18:28 -05:00
|
|
|
#
|
2008-04-10 03:03:21 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2003-04-28 11:18:28 -05:00
|
|
|
#
|
2008-04-10 03:03:21 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2003-04-28 11:18:28 -05:00
|
|
|
#
|
2008-04-10 03:03:21 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2003-04-28 11:18:28 -05:00
|
|
|
#
|
2008-04-10 03:03:21 -05:00
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2003-04-28 11:18:28 -05:00
|
|
|
#
|
2008-04-10 03:03:21 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2003-04-28 11:18:28 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
|
2005-01-21 02:52:02 -06:00
|
|
|
.IF "$(GUI)"=="UNX"
|
2009-01-20 04:06:44 -06:00
|
|
|
# uppercase and no filename extension for txt
|
|
|
|
SYSTEXTDOCS=$(foreach,i,$(alllangiso) $(MISC)$/$(GUI)$/README_$i)
|
|
|
|
SYSHTMLDOCS=$(SYSTEXTDOCS:+".html")
|
|
|
|
.ELSE # "$(GUI)"=="UNX"
|
|
|
|
SYSTEXTDOCS=$(foreach,i,$(alllangiso) $(MISC)$/$(GUI)$/readme_$i.txt)
|
|
|
|
SYSHTMLDOCS=$(SYSTEXTDOCS:s/.txt/.html/)
|
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
2003-04-28 11:18:28 -05:00
|
|
|
|
2009-01-20 04:06:44 -06:00
|
|
|
.IF "$(WITH_LANG)"!=""
|
|
|
|
MERGEDXRM=$(COMMONMISC)$/$(TARGET)$/readme.xrm
|
|
|
|
.ELSE # "$(WITH_LANG)"!=""
|
|
|
|
MERGEDXRM=.$/readme.xrm
|
|
|
|
.ENDIF # "$(WITH_LANG)"!=""
|
2006-11-08 04:57:22 -06:00
|
|
|
|
2003-04-28 11:18:28 -05:00
|
|
|
.INCLUDE : target.mk
|
|
|
|
|
2009-01-20 04:06:44 -06:00
|
|
|
ALLTAR : $(SYSTEXTDOCS) $(SYSHTMLDOCS)
|
2006-11-08 04:57:22 -06:00
|
|
|
|
2009-01-20 04:06:44 -06:00
|
|
|
$(COMMONMISC)$/readme.dtd : ..$/readme.dtd
|
|
|
|
$(MKDIRHIER) $(MISC)$/$(GUI)
|
2007-03-09 01:51:51 -06:00
|
|
|
$(COPY) $< $@
|
2003-04-28 11:18:28 -05:00
|
|
|
|
2009-01-20 04:06:44 -06:00
|
|
|
virtual : $(MERGEDXRM) $(COMMONMISC)$/readme.dtd $(PRJ)$/docs/readme.xsl
|
|
|
|
|
|
|
|
$(MISC)$/readme_text.xsl : virtual
|
2010-06-01 07:35:19 -05:00
|
|
|
$(SED) '' < ..$/readme.xsl > $@
|
2009-01-20 04:06:44 -06:00
|
|
|
|
|
|
|
$(MISC)$/$(GUI)$/$(eq,$(GUI),WNT readme README)_%.html : 'virtual'
|
2009-11-05 11:37:39 -06:00
|
|
|
@@-$(MKDIRHIER) $(@:d)
|
2010-07-26 08:06:38 -05:00
|
|
|
$(XSLTPROC) --nonet --novalid -o $@ \
|
2009-01-20 04:06:44 -06:00
|
|
|
--stringparam os1 $(OS) --stringparam gui1 $(GUI) --stringparam com1 $(COM) \
|
|
|
|
--stringparam cp1 $(CPUNAME) --stringparam type html --stringparam lang1 $* \
|
|
|
|
..$/readme.xsl $(MERGEDXRM)
|
2009-04-23 10:52:08 -05:00
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
chmod g+w $(MISC)$/$(GUI)
|
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
2003-12-17 10:47:08 -06:00
|
|
|
|
2009-09-10 17:44:47 -05:00
|
|
|
$(MISC)$/$(GUI)$/$(eq,$(GUI),OS2 readme README)_%.html : 'virtual'
|
2009-11-05 11:37:39 -06:00
|
|
|
@@-$(MKDIRHIER) $(@:d)
|
2010-07-26 08:06:38 -05:00
|
|
|
$(XSLTPROC) --nonet --novalid -o $@ \
|
2009-09-10 17:44:47 -05:00
|
|
|
--stringparam os1 $(OS) --stringparam gui1 $(GUI) --stringparam com1 $(COM) \
|
|
|
|
--stringparam cp1 $(CPUNAME) --stringparam type html --stringparam lang1 $* \
|
|
|
|
..$/readme.xsl $(MERGEDXRM)
|
|
|
|
|
2009-01-20 04:06:44 -06:00
|
|
|
# no percent-rule to avoid ambiguous inference chains for README_<lang>.html
|
|
|
|
$(SYSTEXTDOCS) : $(MISC)$/readme_text.xsl
|
2009-11-05 11:37:39 -06:00
|
|
|
@@-$(MKDIRHIER) $(@:d)
|
2010-07-26 08:06:38 -05:00
|
|
|
$(XSLTPROC) --nonet --novalid -o $@ \
|
2009-01-20 04:06:44 -06:00
|
|
|
--stringparam os1 $(OS) --stringparam gui1 $(GUI) --stringparam com1 $(COM) \
|
|
|
|
--stringparam cp1 $(CPUNAME) --stringparam type text --stringparam lang1 $(@:b:s/readme_//:s/README_//) \
|
2009-04-23 10:52:08 -05:00
|
|
|
$< $(MERGEDXRM)
|
2011-01-18 16:05:50 -06:00
|
|
|
fold -s -w 75 < $@ > $@.new
|
|
|
|
mv $@.new $@
|
|
|
|
|
|
|
|
.IF "$(GUI)"=="WNT"
|
|
|
|
$(PERL) -pi -e 's/\n/\r\n/' $@
|
|
|
|
.ENDIF # "$(GUI)"=="WNT"
|
2010-06-01 07:35:19 -05:00
|
|
|
|
2009-04-23 10:52:08 -05:00
|
|
|
.IF "$(GUI)"=="UNX"
|
|
|
|
chmod g+w $(MISC)$/$(GUI)
|
|
|
|
.ENDIF # "$(GUI)"=="UNX"
|
|
|
|
|