From 9e0880138bf8c2799689346075a1c57cc9c8c536 Mon Sep 17 00:00:00 2001 From: Ben Konrath Date: Mar 16 2007 18:41:07 +0000 Subject: - Update package-build releng script to work with mylar. --- diff --git a/eclipse-pde.build-add-package-build.patch b/eclipse-pde.build-add-package-build.patch index 2d0b04b..77f347d 100644 --- a/eclipse-pde.build-add-package-build.patch +++ b/eclipse-pde.build-add-package-build.patch @@ -193,42 +193,9 @@ RCS file: templates/package-build/prepare-build-dir.sh diff -N templates/package-build/prepare-build-dir.sh --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ templates/package-build/prepare-build-dir.sh 1 Jan 1970 00:00:00 -0000 -@@ -0,0 +1,83 @@ +@@ -0,0 +1,77 @@ +#!/bin/sh + -+ -+make_links() -+{ -+ TYPE=$1 -+ TYPEDIR=$2 -+ shift; shift; -+ XMLFILES=$@ -+ -+ CURBUILDFILE=$BUILDDIR/tmp/$TYPE-build.xml -+ cat $BUILDFILE | sed "s|@type@|$TYPE|" > $CURBUILDFILE -+ -+ for f in $XMLFILES; do -+ PROJECTDIR=$(dirname $f) -+ PROJECTNAME=$(ant -Dbasedir=$PROJECTDIR -f $CURBUILDFILE 2>&1 | grep echo | cut --delimiter=' ' -f 7) -+ if [ -z $PROJECTNAME ]; then -+ if [ ! -e $PROJECTDIR/META-INF/MANIFEST.MF ]; then -+ echo "ERROR: could not determine the feature id for $PROJECTDIR" -+ exit 1 -+ fi -+ PROJECTNAME=$(grep Bundle-SymbolicName $PROJECTDIR/META-INF/MANIFEST.MF | cut --delimiter=';' -f 1 | cut --delimiter=' ' -f 2) -+ if [ -z $PROJECTNAME ]; then -+ echo "ERROR: could not determine the feature id for $PROJECTDIR" -+ exit 1 -+ fi -+ fi -+ -+ echo " making symlink: $BUILDDIR/$TYPEDIR/$PROJECTNAME -> $PROJECTDIR" -+ ln -sf $PROJECTDIR $BUILDDIR/$TYPEDIR/$PROJECTNAME -+ -+ done -+} -+ -+ +if [ $# -ne 2 ]; then + echo "usage: $0 " + exit 1 @@ -257,23 +224,50 @@ diff -N templates/package-build/prepare-build-dir.sh + +" > $BUILDFILE + -+# find the feature.xml, plugin.xml and fragment.xml files -+FEATURES=$(find $SOURCEDIR -name feature.xml) -+PLUGINS=$(find $SOURCEDIR -name plugin.xml) -+FRAGMENTS=$(find $SOURCEDIR -name fragment.xml) ++for type in feature plugin fragment; do ++ CURBUILDFILE=$BUILDDIR/tmp/$type-build.xml ++ cat $BUILDFILE | sed "s|@type@|$type|" > $CURBUILDFILE ++done + +# make the directories eclipse is expecting +echo " making the 'features' and 'plugins' directories" +mkdir -p $BUILDDIR/features $BUILDDIR/plugins + +# make symlinks for the features -+make_links feature features $FEATURES -+ -+# make the symlinks for plugins -+make_links plugin plugins $PLUGINS -+ -+# make the symlinks for fragments - they go in the plugins directory as well -+make_links fragment plugins $FRAGMENTS ++FEATURES=$(find $SOURCEDIR -name feature.xml) ++for f in $FEATURES; do ++ PROJECTDIR=$(dirname $f) ++ PROJECTNAME=$(ant -Dbasedir=$PROJECTDIR -f $BUILDDIR/tmp/feature-build.xml 2>&1 | grep echo | cut --delimiter=' ' -f 7) ++ if [ -z $PROJECTNAME ]; then ++ echo "ERROR: could not determine the feature id for $PROJECTDIR" ++ exit 1 ++ fi ++ ++ echo " making symlink: $BUILDDIR/features/$PROJECTNAME -> $PROJECTDIR" ++ ln -sf $PROJECTDIR $BUILDDIR/features/$PROJECTNAME ++done ++ ++# make symlinks for plugins and fragments ++PLUGINDIRS=$(find $SOURCEDIR -name plugin.xml -o -name fragment.xml -o -name MANIFEST.MF | sed "s/plugin.xml//g" | sed "s/fragment.xml//g" | sed "s/META-INF\/MANIFEST.MF//" | sort | uniq) ++for dir in $PLUGINDIRS; do ++ PROJECTNAME="" ++ if [ -e $dir/META-INF/MANIFEST.MF ]; then ++ PROJECTNAME=$(grep Bundle-SymbolicName $dir/META-INF/MANIFEST.MF | cut --delimiter=';' -f 1 | cut --delimiter=' ' -f 2) ++ elif [ -e $dir/plugin.xml ]; then ++ PROJECTNAME=$(ant -Dbasedir=$dir -f $BUILDDIR/tmp/plugin-build.xml 2>&1 | grep echo | cut --delimiter=' ' -f 7) ++ elif [ -e $dir/fragment.xml ]; then ++ PROJECTNAME=$(ant -Dbasedir=$dir -f $BUILDDIR/tmp/fragment-build.xml 2>&1 | grep echo | cut --delimiter=' ' -f 7) ++ fi ++ ++ if [ -z $PROJECTNAME ]; then ++ echo "ERROR: could not determine the plugin or fragment id for $dir" ++ exit 1 ++ fi ++ ++ echo " making symlink: $BUILDDIR/plugins/$PROJECTNAME -> $dir" ++ ln -sf $dir $BUILDDIR/plugins/$PROJECTNAME ++ ++done + +rm -rf $BUILDDIR/tmp +echo done diff --git a/eclipse.spec b/eclipse.spec index 125ff48..a818741 100644 --- a/eclipse.spec +++ b/eclipse.spec @@ -19,7 +19,7 @@ Epoch: 1 Summary: An open, extensible IDE Name: eclipse Version: %{eclipse_majmin}.%{eclipse_micro} -Release: 4%{?dist} +Release: 5%{?dist} License: Eclipse Public License Group: Text Editors/Integrated Development Environments (IDE) URL: http://www.eclipse.org/ @@ -1740,6 +1740,9 @@ fi %{_libdir}/%{name}/plugins/org.eclipse.sdk_* %changelog +* Fri Mar 16 2007 Ben Konrath 3.2.2-5 +- Update package-build releng script to work with mylar. + * Thu Mar 15 2007 Ben Konrath 3.2.2-4 - Update to tomcat 5.5.20.