[Pkg-mozext-commits] [sage-extension] 27/49: This commit was manufactured by cvs2svn to create branch 'sage_1_3-branch'.

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:54 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.

commit 76997c6dbb5d19ca1d81d1583281da0c1042b9e5
Author: Peter Andrews <petea at jhu.edu>
Date:   Fri Sep 9 19:42:53 2005 +0000

    This commit was manufactured by cvs2svn to create branch
    'sage_1_3-branch'.
---
 build.xml | 189 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 189 insertions(+)

diff --git a/build.xml b/build.xml
new file mode 100644
index 0000000..9c20cbf
--- /dev/null
+++ b/build.xml
@@ -0,0 +1,189 @@
+<?xml version="1.0"?>
+<!-- ***** BEGIN LICENSE BLOCK *****
+   - Version: MPL 1.1/GPL 2.0/LGPL 2.1
+   -
+   - The contents of this file are subject to the Mozilla Public License Version
+   - 1.1 (the "License"); you may not use this file except in compliance with
+   - the License. You may obtain a copy of the License at
+   - http://www.mozilla.org/MPL/
+   -
+   - Software distributed under the License is distributed on an "AS IS" basis,
+   - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+   - for the specific language governing rights and limitations under the
+   - License.
+   -
+   - The Original Code is Sage.
+   -
+   - The Initial Developer of the Original Code is
+   - Peter Andrews <petea at jhu.edu>.
+   - Portions created by the Initial Developer are Copyright (C) 2005
+   - the Initial Developer. All Rights Reserved.
+   -
+   - Contributor(s):
+   - Peter Andrews <petea at jhu.edu>
+   - Erik Arvidsson <erik at eae.net>
+   -
+   - Alternatively, the contents of this file may be used under the terms of
+   - either the GNU General Public License Version 2 or later (the "GPL"), or
+   - the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+   - in which case the provisions of the GPL or the LGPL are applicable instead
+   - of those above. If you wish to allow use of your version of this file only
+   - under the terms of either the GPL or the LGPL, and not to allow others to
+   - use your version of this file under the terms of the MPL, indicate your
+   - decision by deleting the provisions above and replace them with the notice
+   - and other provisions required by the LGPL or the GPL. If you do not delete
+   - the provisions above, a recipient may use your version of this file under
+   - the terms of any one of the MPL, the GPL or the LGPL.
+   -
+   - ***** END LICENSE BLOCK ***** -->
+
+<project name="sage" default="build-local">
+	
+	<property name="build"		location="build"/>
+	<property name="src"			location="src"/>
+	<property name="tools"		location="tools"/>
+	<property name="xpcom"		location="${build}/xpcom"/>
+	<property name="tag"			value="HEAD"/>
+
+	<!-- create build directories -->
+	<target name="init" depends="clean">
+		<echo>The operating system is ${os.name}</echo>
+		<condition property="isWin"><os family="windows"/></condition>
+		<condition property="isMac"><and><os family="mac"/><os family="unix"/></and></condition>
+		<condition property="isLinux"><and><os family="unix"/><not><os family="mac"/></not></and></condition>
+		<mkdir dir="${build}"/>
+		<mkdir dir="${build}/xpcom"/>
+		<mkdir dir="${build}/src"/>
+		<mkdir dir="${build}/tmp"/>
+		<mkdir dir="${build}/xpi"/>
+		<mkdir dir="${build}/xpi/chrome"/>
+	</target>
+
+	<!-- build from local source files -->
+	<target name="build-local" depends="init">
+		<copy todir="${build}/src">
+			<fileset dir="${src}">
+				<include name="**"/>
+			</fileset>
+		</copy>
+		<copy todir="${build}/xpcom">
+			<fileset dir="${tools}">
+				<include name="xpcom_win.zip"/>
+				<include name="xpcom_mac.tar.gz"/>
+				<include name="xpcom_linux.tar.gz"/>
+			</fileset>
+		</copy>
+		<property name="version" value="sage-local"/>
+		<condition property="hasComponents"><available file="${build}/src/components" type="dir"/></condition>
+		<ant target="xpi"/>		
+	</target>
+	
+	<!-- build from cvs source files -->
+	<target name="build-cvs" depends="init">
+		<cvspass cvsRoot=":pserver:guest at mozdev.org:/cvs" password="guest" passfile="${build}/.cvspass"/>
+		<cvs cvsRoot=":pserver:guest at mozdev.org:/cvs" package="sage" dest="${build}/tmp" command="export -r ${tag}" passfile="${build}/.cvspass"/>
+		<copy todir="${build}/src">
+			<fileset dir="${build}/tmp/sage/src">
+				<include name="**"/>
+			</fileset>
+		</copy>
+		<copy todir="${build}/xpcom">
+			<fileset dir="${build}/tmp/sage/tools">
+				<include name="xpcom_win.zip"/>
+				<include name="xpcom_mac.tar.gz"/>
+				<include name="xpcom_linux.tar.gz"/>
+			</fileset>
+		</copy>
+		<property name="version" value="${tag}"/>
+		<ant target="xpi"/>
+	</target>
+
+	<target name="xpcom-tools" depends="xpcom-tools-win, xpcom-tools-mac, xpcom-tools-linux"/>
+	<target name="xpcom-tools-win" if="isWin">
+		<unzip src="${xpcom}/xpcom_win.zip" dest="${xpcom}"/>
+	</target>
+	<target name="xpcom-tools-mac" if="isMac">
+		<exec dir="${xpcom}" executable="tar" failonerror="true">
+			<arg line="xzf xpcom_mac.tar.gz"/>
+		</exec>
+	</target>
+	<target name="xpcom-tools-linux" if="isLinux">
+		<exec dir="${xpcom}" executable="tar" failonerror="true">
+			<arg line="xzf xpcom_linux.tar.gz"/>
+		</exec>
+	</target>
+
+	
+	<target name="compile-idl" depends="compile-idl-win, compile-idl-mac, compile-idl-linux">
+		<exec dir="${xpcom}/base" executable="${xpcom}/base/${xpidl_executable}" failonerror="true">
+			<arg line="-m typelib -w -v -I -o sageIDateFormatter.idl"/>
+		</exec>
+		<exec dir="${xpcom}/base" executable="${xpcom}/base/${xpidl_executable}" failonerror="true">
+			<arg line="-m typelib -w -v -I -o sageIDateParser.idl"/>
+		</exec>
+	</target>
+	<target name="compile-idl-win" if="isWin">
+	    <property name="xpidl_executable" value="xpidl.exe"/>
+	</target>
+	<target name="compile-idl-mac" if="isMac">
+	    <property name="xpidl_executable" value="xpidl"/>
+	</target>
+	<target name="compile-idl-linux" if="isLinux">
+	    <property name="xpidl_executable" value="xpidl"/>
+	</target>
+
+	<!-- generate XPConnect typelib files -->
+	<target name="build-components" if="hasComponents">
+		<ant target="xpcom-tools"/>
+		<!-- copy interfaces to xpcom compile dir -->
+	    <copy todir="${xpcom}/base">
+			<fileset dir="${build}/src/components">
+				<include name="*.idl"/>    
+			</fileset>
+		</copy>
+	    
+		<!-- compile interfaces -->
+		<ant target="compile-idl"/>
+		
+		<!-- copy XPT files to build directory -->
+		<copy todir="${build}/src/components">
+			<fileset dir="${xpcom}/base">
+				<include name="sageIDateFormatter.xpt"/>
+				<include name="sageIDateParser.xpt"/>
+			</fileset>
+		</copy>
+
+		<mkdir dir="${build}/xpi/components"/>
+		
+		<!-- copy JS and XPT component files to XPI directory -->
+		<copy todir="${build}/xpi/components">
+			<fileset dir="${build}/src/components">
+				<exclude name="*.idl"/>
+			</fileset>
+		</copy>
+	</target>
+	
+	<!-- assemeble extension structure -->
+	<target name="assemble" depends="build-components">
+		<!-- create main jar file -->
+		<zip destfile="${build}/xpi/chrome/${ant.project.name}.jar" basedir="${build}/src/sage" compress="true"/>
+		
+		<!-- copy install meta files -->
+		<copy todir="${build}/xpi">
+			<fileset dir="${build}/src">
+				<include name="install.*"/>
+			</fileset>
+		</copy>
+	</target>
+  
+  	<!-- create XPI archive -->
+	<target name="xpi" depends="assemble">
+		<zip destfile="${build}/${version}.xpi" basedir="${build}/xpi" compress="true"/>
+	</target>
+
+	<!-- remove build output -->
+	<target name="clean">
+		<delete dir="${build}"/>
+	</target>
+
+</project>
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git



More information about the Pkg-mozext-commits mailing list