Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-patch] Patch to releng scripts

Great idea Tom. I have applied this. I have found a few instances myself 
when I haven't wanted the unzip. Thanks for this.

Doug Schaefer, IBM's Eclipse CDT Architect
Ottawa (Palladium), Ontario, Canada



Tom Tromey <tromey@xxxxxxxxxx> 
Sent by: cdt-patch-admin@xxxxxxxxxxx
06/16/2004 07:26 PM
Please respond to
cdt-patch


To
cdt-patch <cdt-patch@xxxxxxxxxxx>
cc

Subject
[cdt-patch] Patch to releng scripts






I've bee packaging CDT 2.x into RPMs recently.  I've changed things
around to use org.eclipse.cdt.releng -- it is workable and convenient
and hopefully will make it simpler to package future versions of the
CDT as well.

Anyway, in our environment, the CDT will be built against an already
installed Eclipse platform.  (I imagine this would be true of the
approach taken by basically any Linux vendor, and jpackage.org as
well.)

The releng scripts work fine in this situation, except I needed a
small patch not to skip unzipping the SDK.  Locally I just deleted the
unzip invocation, but I was hoping that the appended would be
acceptable for inclusion in the CDT CVS repository.  With this we can
build with `-DdontUnzip=true' to skip the unzipping.

Tom

Index: build.xml
===================================================================
RCS file: /home/tools/org.eclipse.cdt.releng/build.xml,v
retrieving revision 1.15
diff -u -r1.15 build.xml
--- build.xml 21 May 2004 19:56:10 -0000 1.15
+++ build.xml 16 Jun 2004 23:35:08 -0000
@@ -28,8 +28,7 @@
                                 <property name="mailto" 
value="cdt-test-dev@xxxxxxxxxxx"/>
                 </target>
 
-                <target name="zips" depends="init">
-                                <unzip src="${eclipseZip}" 
dest="${buildDirectory}"/>
+                <target name="zips" depends="init,unzip">
                                 <ant antfile="build.xml" 
dir="${pde.build.scripts}">
                                                 <property name="builder" 
value="${basedir}/platform" />
                                 </ant>
@@ -43,6 +42,10 @@
                                 <condition property="hasErrors">
                                                 <contains 
string="${compileLog}" substring="ERROR"/>
                                 </condition>
+                </target>
+
+                <target name="unzip" depends="init" unless="dontUnzip">
+                                <unzip src="${eclipseZip}" 
dest="${buildDirectory}"/>
                 </target>
 
                 <target name="test" depends="init" unless="hasErrors">
_______________________________________________
cdt-patch mailing list
cdt-patch@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/cdt-patch




Back to the top