incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1245564 - in /incubator/ooo/trunk/main: instsetoo_native/util/makefile.mk solenv/bin/srcrelease.xml
Date Fri, 17 Feb 2012 14:25:06 GMT
Author: jsc
Date: Fri Feb 17 14:25:06 2012
New Revision: 1245564

URL: http://svn.apache.org/viewvc?rev=1245564&view=rev
Log:
add new target for creating src releases

Added:
    incubator/ooo/trunk/main/solenv/bin/srcrelease.xml
Modified:
    incubator/ooo/trunk/main/instsetoo_native/util/makefile.mk

Modified: incubator/ooo/trunk/main/instsetoo_native/util/makefile.mk
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/instsetoo_native/util/makefile.mk?rev=1245564&r1=1245563&r2=1245564&view=diff
==============================================================================
--- incubator/ooo/trunk/main/instsetoo_native/util/makefile.mk (original)
+++ incubator/ooo/trunk/main/instsetoo_native/util/makefile.mk Fri Feb 17 14:25:06 2012
@@ -109,6 +109,13 @@ VERBOSESWITCH=-verbose
 VERBOSESWITCH=-quiet
 .ENDIF
 
+# New target to prepare a source release
+SRC_RELEASE_OUT_DIR=$(shell cd $(OUT) && pwd)$/AOO_SRC_Release
+
+aoo_srcrelease: $(SOLARENV)$/bin$/srcrelease.xml
+	@-$(MKDIR) $(OUT)$/AOO_SRC_Release
+	$(ANT) -f $(SOLARENV)$/bin$/srcrelease.xml -q -Dbasedir=$(SOURCE_ROOT_DIR) -Dout.dir=$(SRC_RELEASE_OUT_DIR)
+
 updatepack:
 	$(PERL) -w $(SOLARENV)$/bin$/packager.pl
 
@@ -168,7 +175,7 @@ $(foreach,i,$(alllangiso) ooodevlanguage
 $(foreach,i,$(alllangiso) sdkoo_$i) : $(ADDDEPS)
 
 $(foreach,i,$(alllangiso) sdkoodev_$i) : $(ADDDEPS)
-             
+
 $(foreach,i,$(alllangiso) ure_$i) : $(ADDDEPS)
 
 .IF "$(MAKETARGETS)"!=""

Added: incubator/ooo/trunk/main/solenv/bin/srcrelease.xml
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/solenv/bin/srcrelease.xml?rev=1245564&view=auto
==============================================================================
--- incubator/ooo/trunk/main/solenv/bin/srcrelease.xml (added)
+++ incubator/ooo/trunk/main/solenv/bin/srcrelease.xml Fri Feb 17 14:25:06 2012
@@ -0,0 +1,84 @@
+<project name="Apache OpenOffice" basedir="." default="pack">
+
+  <property name="out.dir" value="."/>
+  <property name="aoo.name" value="aoo"/>
+  <property name="aoo.ver" value="3.4"/>
+  <property name="release.dir.name" value="${aoo.name}-${aoo.ver}"/>
+  <property name="release.file.name" value="${release.dir.name}-src"/>
+  <property name="release.zip" value="${out.dir}/${release.file.name}.zip"/>
+  <property name="release.tar" value="${out.dir}/${release.file.name}.tar"/>
+  <property name="release.tar.gz" value="${out.dir}/${release.file.name}.tar.gz"/>
+  <property name="release.tar.bz2" value="${out.dir}/${release.file.name}.tar.bz2"/>
+  
+  <property name="excludes.list" value="configure, moz/zipped/**, **/.svn **/.gitignore,
**/.git, warn, set_soenv, solver/**, makefile.mk, config.log, config.parms, config.status,
bootstrap, autom4te.cache/**, MacOSXX86Env.*, external/unowinreg/unowinreg.dll" />
+  <property name="excludes.executables" value="solenv/bin/macosx-create-bundle, solenv/bin/linkoo,
solenv/bin/localize, solenv/bin/createpdbrelocators, solenv/bin/langwrap, solenv/bin/makedepn,
solenv/bin/packmodule, solenv/bin/rpm-wrapper, solenv/bin/relocate, solenv/bin/receditor,
solenv/bin/subsequenttests, **/*.sh, **/*.bat, **/*.exe, configure.cmd, oowintool, config.sub,
config.guess, **/*.pl"/>
+  <property name="includes.mk" value="inc/unxmac*.mk inc/unxlng*.mk inc/wntmsci*.mk inc/unxsol*.mk"
/>
+  <property name="excludes.outdirs" value="**/unxmacx*/**, **/unxlng*/**, **/unxsol*/**,
**/wntmsci*/**" />
+  
+  
+  <target name="clean">
+    <echo level="verbose" message="### clean output files:"/>
+    <delete file="${release.zip}" verbose="true"/>
+    <delete file="${release.tar}" verbose="true"/>
+    <delete file="${release.tar.gz}" verbose="true"/>
+    <delete file="${release.tar.bz2}" verbose="true"/>
+  </target>
+
+  <target name="source.zip">
+    <echo level="verbose" message="### creating ${release.zip} ..."/>
+    <echo level="verbose" message="### basedir=${basedir}"/>
+    <echo level="verbose" message="### source.root=${source.root}"/>
+    <echo level="verbose" message="### out.dir =${out.dir}"/>
+    <zip destfile="${release.zip}">
+
+      <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/>
+      <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/>
+      <zipfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}"
prefix="${release.dir.name}/ext_libraries"/>
+      <zipfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}"
prefix="${release.dir.name}/main"/>
+      <zipfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}"
prefix="${release.dir.name}/extras"/>
+      <zipfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}"
prefix="${release.dir.name}/main"/>
+      <zipfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}"
prefix="${release.dir.name}/main"/>
+      <zipfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/>
+    </zip>
+    <echo level="verbose" message="   ... DONE"/>
+  </target>
+
+  <target name="source.tar">
+    <echo level="verbose" message="### creating intermediate ${release.tar} ..."/>
+    <tar destfile="${release.tar}" longfile="gnu">
+      <tarfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/>
+      <tarfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/>
+      <tarfileset dir="ext_libraries" excludes="${excludes.list},${excludes.outdirs}"
prefix="${release.dir.name}/ext_libraries"/>
+      <tarfileset dir="main" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}"
prefix="${release.dir.name}/main"/>
+      <tarfileset dir="extras" excludes="${excludes.list},${excludes.executables},${excludes.outdirs}"
prefix="${release.dir.name}/extras"/>
+      <tarfileset dir="main" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}"
prefix="${release.dir.name}/main"/>
+      <tarfileset dir="extras" includes="${excludes.executables}" filemode="755" excludes="${excludes.list},${excludes.outdirs}"
prefix="${release.dir.name}/main"/>
+      <tarfileset dir="main/solenv" includes="${includes.mk}" prefix="${release.dir.name}/main/solenv"/>
+    </tar>
+    <echo level="verbose" message="   ... DONE"/>
+  </target>
+
+  <target name="source.tar.gz" depends="source.tar">
+    <echo level="verbose" message="### creating ${release.tar.gz} ..."/>
+    <gzip destfile="${release.tar.gz}" src="${release.tar}"/>
+    <echo level="verbose" message="   ... DONE"/>
+  </target>
+  
+  <target name="source.tar.bz2" depends="source.tar">
+    <echo level="verbose" message="### creating ${release.tar.bz2} ..."/>
+    <bzip2 destfile="${release.tar.bz2}" src="${release.tar}"/>
+    <echo level="verbose" message="   ... DONE"/>
+  </target>
+
+  <target name="dummy">
+    <zip destfile="${release.zip}">
+      <zipfileset file="main/NOTICE" fullpath="${release.dir.name}/NOTICE"/>
+      <zipfileset file="main/LICENSE" fullpath="${release.dir.name}/LICENSE"/>
+    </zip>
+  </target>
+ 
+  <target name="pack" depends="clean,source.zip,source.tar.gz,source.tar.bz2">
+    <echo level="info" message="### Create source release files for Apache OpenOffice
${aoo.ver} ..."/>
+  </target>
+  
+</project>



Mime
View raw message