diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2008-02-28 10:36:32 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2008-02-28 10:36:32 +0000 |
commit | 48b3f36cd336f9cf9d2c48c37e2d43ff9128c696 (patch) | |
tree | 8c10ceda35c87d3006513bb86d747790a1a0e3ef | |
parent | 398a73b8e4d5e484b17cc52f0606e63a8bbf2422 (diff) |
#i10000# introduce licenses
-rw-r--r-- | swext/mediawiki/build.xml | 7 | ||||
-rw-r--r-- | swext/mediawiki/src/description.xml | 5 | ||||
-rw-r--r-- | swext/mediawiki/src/makefile.mk | 79 | ||||
-rw-r--r-- | swext/prj/build.lst | 3 |
4 files changed, 90 insertions, 4 deletions
diff --git a/swext/mediawiki/build.xml b/swext/mediawiki/build.xml index b9b904c3feef..c2cdc44d7392 100644 --- a/swext/mediawiki/build.xml +++ b/swext/mediawiki/build.xml @@ -5,9 +5,9 @@ * * $RCSfile: build.xml,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: mav $ $Date: 2008-02-12 18:15:34 $ + * last change: $Author: mav $ $Date: 2008-02-28 11:35:40 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -103,7 +103,7 @@ <target name="uno-package" depends="jar, init"> <delete file="${dist}/${name}.${ext}"/> <zip destfile="${dist}/${name}.${ext}"> - <fileset dir="src" includes="description.xml" casesensitive="yes"/> + <fileset dir="${out}/misc/${target}" includes="description.xml" casesensitive="yes"/> <fileset dir="${out}/misc/${target}/registry/schema/org/openoffice/Office/Custom" includes="*.xcs" casesensitive="yes"/> <fileset dir="${out}/misc/${target}/registry/data/org/openoffice/Office" includes="ProtocolHandler.xcu" casesensitive="yes"/> <fileset dir="${out}/misc/${target}/merge/org/openoffice/Office/Custom" includes="*.xcu" casesensitive="yes"/> @@ -117,6 +117,7 @@ <file file="${commons-logging-jar}"/> <zipfileset dir="dialogs" includes="**/*.xdl,**/*.xba,**/*.xlb" casesensitive="yes" prefix="WikiEditor"/> <zipfileset dir="src" includes="uno-extension-manifest.xml" fullpath="META-INF/manifest.xml"/> + <zipfileset dir="${out}/misc/${target}/license" includes="LICENSE*" casesensitive="yes" prefix="license"/> </zip> </target> diff --git a/swext/mediawiki/src/description.xml b/swext/mediawiki/src/description.xml index 4cea9dc96e66..1980515342ca 100644 --- a/swext/mediawiki/src/description.xml +++ b/swext/mediawiki/src/description.xml @@ -5,6 +5,11 @@ <display-name> <name lang="en-US">MediaWiki Extension</name> </display-name> + <registration> + <simple-license accept-by="user" default-license-id="lic-en-US"> + <license-text xlink:href="licensefile" lang="isocode" license-id="lic-isocode"/> + </simple-license> + </registration> <dependencies> <OpenOffice.org-minimal-version value="2.4" d:name="OpenOffice.org 2.4 or StarOffice 8 Update 10"/> </dependencies> diff --git a/swext/mediawiki/src/makefile.mk b/swext/mediawiki/src/makefile.mk new file mode 100644 index 000000000000..7fae8d7d5661 --- /dev/null +++ b/swext/mediawiki/src/makefile.mk @@ -0,0 +1,79 @@ +#************************************************************************* +# +# OpenOffice.org - a multi-platform office productivity suite +# +# $RCSfile: makefile.mk,v $ +# +# $Revision: 1.1 $ +# +# last change: $Author: mav $ $Date: 2008-02-28 11:36:32 $ +# +# The Contents of this file are made available subject to +# the terms of GNU Lesser General Public License Version 2.1. +# +# +# GNU Lesser General Public License Version 2.1 +# ============================================= +# Copyright 2005 by Sun Microsystems, Inc. +# 901 San Antonio Road, Palo Alto, CA 94303, USA +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1, as published by the Free Software Foundation. +# +# This library 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 for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +#************************************************************************* + +PRJ=..$/.. +PRJNAME=swext +TARGET=mediawiki +GEN_HID=FALSE + +ENABLE_EXCEPTIONS=TRUE + +# --- Settings ---------------------------------- + +.INCLUDE : settings.mk + +DESCRIPTION:=$(MISC)$/$(TARGET)$/description.xml + +# .IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT" +# PACKLICS:=$(foreach,i,$(alllangiso) $(MISC)$/$(TARGET)$/license$/license_$i) +# .ELSE +PACKLICS:=$(foreach,i,$(alllangiso) $(MISC)$/$(TARGET)$/license$/LICENSE_$i) +# .ENDIF + +common_build_zip= + +.INCLUDE : target.mk + +.IF "$(GUI)" == "WIN" || "$(GUI)" == "WNT" +$(PACKLICS) : $(SOLARBINDIR)$/osl$/license$$(@:b:s/_/./:e:s/./_/)$$(@:e).txt + @@-$(MKDIRHIER) $(@:d) + $(GNUCOPY) $< $@ +.ELSE +$(PACKLICS) : $(SOLARBINDIR)$/osl$/LICENSE$$(@:b:s/_/./:e:s/./_/)$$(@:e) + @@-$(MKDIRHIER) $(@:d) + $(GNUCOPY) $< $@ +.ENDIF + +ALLTAR: $(PACKLICS) $(DESCRIPTION) + +.INCLUDE .IGNORE : $(MISC)$/$(TARGET)_lang_track.mk +.IF "$(LAST_WITH_LANG)"!="$(WITH_LANG)" +PHONYDESC=.PHONY +.ENDIF # "$(LAST_WITH_LANG)"!="$(WITH_LANG)" +$(DESCRIPTION) $(PHONYDESC) : $$(@:f) + @@-$(MKDIRHIER) $(@:d) + $(PERL) $(SOLARENV)$/bin$/licinserter.pl description.xml license/LICENSE_xxx $@ + @echo LAST_WITH_LANG=$(WITH_LANG) > $(MISC)$/$(TARGET)_lang_track.mk + diff --git a/swext/prj/build.lst b/swext/prj/build.lst index d5af815ede18..27e63c6ad48e 100644 --- a/swext/prj/build.lst +++ b/swext/prj/build.lst @@ -4,5 +4,6 @@ swext swext\mediawiki\help\en-US\com.sun.sun-mediawiki nmake swext swext\mediawiki\src\registry\schema\org\openoffice\Office\Custom nmake - all swext_mwschema NULL swext swext\mediawiki\src\registry\data\org\openoffice\Office\Custom nmake - all swext_mwcustomdata swext_mwschema NULL swext swext\mediawiki\src\registry\data\org\openoffice\Office nmake - all swext_mwofficedata NULL -swext swext\mediawiki nmake - all swext_mw swext_mwhelp swext_mwschema swext_mwcustomdata swext_mwofficedata NULL +swext swext\mediawiki\src nmake - all swext_mwlicense NULL +swext swext\mediawiki nmake - all swext_mw swext_mwhelp swext_mwschema swext_mwcustomdata swext_mwofficedata swext_mwlicense NULL |