rpms/eclipse-pydev/devel eclipse-pydev-TestDependent.java.patch, NONE, 1.1 eclipse-pydev-noretroweaver.patch, NONE, 1.1 eclipse-pydev.spec, NONE, 1.1 fetch-eclipse-pydev.sh, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Igor Foox (ifoox)
fedora-extras-commits at redhat.com
Fri Apr 27 18:57:07 UTC 2007
Author: ifoox
Update of /cvs/extras/rpms/eclipse-pydev/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24368/devel
Modified Files:
.cvsignore sources
Added Files:
eclipse-pydev-TestDependent.java.patch
eclipse-pydev-noretroweaver.patch eclipse-pydev.spec
fetch-eclipse-pydev.sh
Log Message:
auto-import eclipse-pydev-1.3.1-5 on branch devel from eclipse-pydev-1.3.1-5.src.rpm
eclipse-pydev-TestDependent.java.patch:
--- NEW FILE eclipse-pydev-TestDependent.java.patch ---
--- /dev/null 2006-06-02 09:11:39.438467500 -0400
+++ plugins/org.python.pydev.core/tests/org/python/pydev/core/TestDependent.java 2006-06-02 16:33:25.000000000 -0400
@@ -0,0 +1,39 @@
+/*
+ * Create a file TestDependent.java with the contents in this file and substitute the
+ * values as needed...
+ */
+package org.python.pydev.core;
+
+public class TestDependent {
+
+ //NOTE: this should be gotten from some variable to point to the python lib (less system dependence, but still, some).
+ public static String PYTHON_EXE="D:/bin/Python24/python.exe";
+ public static final String PYTHON_INSTALL="D:/bin/Python24/";
+ public static final String PYTHON_LIB="D:/bin/Python24/Lib/";
+ public static final String PYTHON_SITE_PACKAGES="D:/bin/Python24/Lib/site-packages/";
+ public static final String PYTHON_WXPYTHON_PACKAGES="D:/bin/Python24/Lib/site-packages/wx-2.6-msw-ansi/";
+ public static final String PYTHON_NUMARRAY_PACKAGES="D:/bin/Python24/Lib/site-packages/numarray/";
+
+ //NOTE: this should set to the tests pysrc location, so that it can be added to the pythonpath.
+ public static final String TEST_PYDEV_BASE_LOC = "E:/eclipse_workspace/";
+ public static final String TEST_PYSRC_LOC=TEST_PYDEV_BASE_LOC+"org.python.pydev/tests/pysrc/";
+ public static final String TEST_PYSRC_LOC2=TEST_PYDEV_BASE_LOC+"org.python.pydev/tests/pysrc2/";
+ public static final String TEST_PYDEV_PLUGIN_LOC = "E:/eclipse_workspace/org.python.pydev/";
+ public static final String TEST_PYDEV_JYTHON_PLUGIN_LOC = "E:/eclipse_workspace/org.python.pydev.jython/";
+ public static final String TEST_PYDEV_PARSER_PLUGIN_LOC = TEST_PYDEV_BASE_LOC+"org.python.pydev.parser/";
+
+ //java info
+ public static final String JAVA_LOCATION="C:/Program Files/Java/jre1.5.0_04/bin/java.exe";
+ public static final String JAVA_RT_JAR_LOCATION= "C:/Program Files/Java/jre1.5.0_04/lib/rt.jar";
+
+ public static final String JYTHON_JAR_LOCATION="D:/bin/jython21/jython.jar";
+ public static final String JYTHON_LIB_LOCATION="D:/bin/jython21/lib/";
+
+ //we cannot test what we don't have...
+ public static final boolean HAS_WXPYTHON_INSTALLED = false;
+ public static final boolean HAS_QT_INSTALLED = true;
+ public static final boolean HAS_GLU_INSTALLED = true;
+ public static final boolean HAS_SWT_ON_PATH = false;
+ public static final boolean HAS_NUMARRAY_INSTALLED = true;
+ public static final boolean HAS_MX_DATETIME = false;
+}
eclipse-pydev-noretroweaver.patch:
--- NEW FILE eclipse-pydev-noretroweaver.patch ---
diff -ru plugins/org.python.pydev/build.properties plugins/org.python.pydev/build.properties
--- plugins/org.python.pydev/build.properties 2006-10-29 14:50:58.000000000 -0500
+++ plugins/org.python.pydev/build.properties 2007-03-25 16:09:44.000000000 -0400
@@ -9,7 +9,6 @@
eclipse32.gif,\
pydev.gif,\
Pydev.gif,\
- retroweaver-rt.jar,\
shiftone-cache.jar,\
build.properties
jars.compile.order = pydev.jar
diff -ru plugins/org.python.pydev/META-INF/MANIFEST.MF plugins/org.python.pydev/META-INF/MANIFEST.MF
--- plugins/org.python.pydev/META-INF/MANIFEST.MF 2007-03-25 16:12:17.000000000 -0400
+++ plugins/org.python.pydev/META-INF/MANIFEST.MF 2007-03-25 16:09:57.000000000 -0400
@@ -3,8 +3,7 @@
Bundle-Name: Pydev - Python Development Environment
Bundle-SymbolicName: org.python.pydev; singleton:=true
Bundle-Version: 0.9.7.1
-Bundle-ClassPath: pydev.jar,
- retroweaver-rt.jar
+Bundle-ClassPath: pydev.jar
Bundle-Activator: org.python.pydev.plugin.PydevPlugin
Bundle-Vendor: Fabio Zadrozny / Aleks Totic
Bundle-Localization: plugin
diff -ru plugins/org.python.pydev.ast/build.properties plugins/org.python.pydev.ast/build.properties
--- plugins/org.python.pydev.ast/build.properties 2005-09-03 11:59:14.000000000 -0400
+++ plugins/org.python.pydev.ast/build.properties 2007-03-25 16:09:17.000000000 -0400
@@ -1,7 +1,6 @@
bin.includes = plugin.xml,\
ast.jar,\
- META-INF/,\
- retroweaver-rt.jar
+ META-INF/
jars.compile.order = ast.jar
source.ast.jar = src/
output.ast.jar = bin/
diff -ru plugins/org.python.pydev.ast/META-INF/MANIFEST.MF plugins/org.python.pydev.ast/META-INF/MANIFEST.MF
--- plugins/org.python.pydev.ast/META-INF/MANIFEST.MF 2007-03-25 16:12:17.000000000 -0400
+++ plugins/org.python.pydev.ast/META-INF/MANIFEST.MF 2007-03-25 16:09:34.000000000 -0400
@@ -3,8 +3,7 @@
Bundle-Name: Ast Plug-in
Bundle-SymbolicName: org.python.pydev.ast; singleton:=true
Bundle-Version: 0.9.7.1
-Bundle-ClassPath: ast.jar,
- retroweaver-rt.jar
+Bundle-ClassPath: ast.jar
Bundle-Activator: org.python.pydev.ast.AstPlugin
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
diff -ru plugins/org.python.pydev.core/build.properties plugins/org.python.pydev.core/build.properties
--- plugins/org.python.pydev.core/build.properties 2005-11-17 09:53:44.000000000 -0500
+++ plugins/org.python.pydev.core/build.properties 2007-03-25 16:10:49.000000000 -0400
@@ -3,7 +3,6 @@
bin.includes = plugin.xml,\
META-INF/,\
core.jar,\
- retroweaver-rt.jar,\
commons-codec.jar
jars.extra.classpath = commons-codec.jar
jars.compile.order = core.jar
diff -ru plugins/org.python.pydev.core/META-INF/MANIFEST.MF plugins/org.python.pydev.core/META-INF/MANIFEST.MF
--- plugins/org.python.pydev.core/META-INF/MANIFEST.MF 2007-03-25 16:12:17.000000000 -0400
+++ plugins/org.python.pydev.core/META-INF/MANIFEST.MF 2007-03-25 16:10:58.000000000 -0400
@@ -4,7 +4,6 @@
Bundle-SymbolicName: org.python.pydev.core; singleton:=true
Bundle-Version: 0.9.7.1
Bundle-ClassPath: core.jar,
- retroweaver-rt.jar,
commons-codec.jar
Bundle-Activator: org.python.pydev.core.CorePlugin
Bundle-Vendor: Fabio Zadrozny
diff -ru plugins/org.python.pydev.debug/build.properties plugins/org.python.pydev.debug/build.properties
--- plugins/org.python.pydev.debug/build.properties 2005-09-03 11:59:30.000000000 -0400
+++ plugins/org.python.pydev.debug/build.properties 2007-03-25 16:10:31.000000000 -0400
@@ -3,8 +3,7 @@
CVS/,\
META-INF/,\
icons/,\
- pydev-debug.jar,\
- retroweaver-rt.jar
+ pydev-debug.jar
jars.compile.order = pydev-debug.jar
source.pydev-debug.jar = src/
output.pydev-debug.jar = bin/
diff -ru plugins/org.python.pydev.debug/META-INF/MANIFEST.MF plugins/org.python.pydev.debug/META-INF/MANIFEST.MF
--- plugins/org.python.pydev.debug/META-INF/MANIFEST.MF 2007-03-25 16:12:17.000000000 -0400
+++ plugins/org.python.pydev.debug/META-INF/MANIFEST.MF 2007-03-25 16:10:42.000000000 -0400
@@ -3,8 +3,7 @@
Bundle-Name: Pydev debug
Bundle-SymbolicName: org.python.pydev.debug; singleton:=true
Bundle-Version: 0.9.7.1
-Bundle-ClassPath: pydev-debug.jar,
- retroweaver-rt.jar
+Bundle-ClassPath: pydev-debug.jar
Bundle-Activator: org.python.pydev.debug.core.PydevDebugPlugin
Bundle-Vendor: Fabio Zadrozny / Aleks Totic
Bundle-Localization: plugin
diff -ru plugins/org.python.pydev.jython/build.properties plugins/org.python.pydev.jython/build.properties
--- plugins/org.python.pydev.jython/build.properties 2006-04-06 12:12:37.000000000 -0400
+++ plugins/org.python.pydev.jython/build.properties 2007-03-25 16:10:07.000000000 -0400
@@ -2,7 +2,6 @@
pydev-jython.jar,\
jython.jar,\
jysrc/,\
- retroweaver-rt.jar,\
plugin.xml,\
Lib/
jars.compile.order = pydev-jython.jar
diff -ru plugins/org.python.pydev.jython/META-INF/MANIFEST.MF plugins/org.python.pydev.jython/META-INF/MANIFEST.MF
--- plugins/org.python.pydev.jython/META-INF/MANIFEST.MF 2007-03-25 16:12:17.000000000 -0400
+++ plugins/org.python.pydev.jython/META-INF/MANIFEST.MF 2007-03-25 16:10:16.000000000 -0400
@@ -4,7 +4,6 @@
Bundle-SymbolicName: org.python.pydev.jython; singleton:=true
Bundle-Version: 0.9.7.1
Bundle-ClassPath: pydev-jython.jar,
- retroweaver-rt.jar,
jython.jar
Bundle-Activator: org.python.pydev.jython.JythonPlugin
Bundle-Vendor: Fabio Zadrozny
diff -ru plugins/org.python.pydev.parser/build.properties plugins/org.python.pydev.parser/build.properties
--- plugins/org.python.pydev.parser/build.properties 2005-09-03 11:59:02.000000000 -0400
+++ plugins/org.python.pydev.parser/build.properties 2007-03-25 16:11:10.000000000 -0400
@@ -2,5 +2,4 @@
output.parser.jar = bin/
bin.includes = plugin.xml,\
META-INF/,\
- parser.jar,\
- retroweaver-rt.jar
+ parser.jar
diff -ru plugins/org.python.pydev.parser/META-INF/MANIFEST.MF plugins/org.python.pydev.parser/META-INF/MANIFEST.MF
--- plugins/org.python.pydev.parser/META-INF/MANIFEST.MF 2007-03-25 16:12:17.000000000 -0400
+++ plugins/org.python.pydev.parser/META-INF/MANIFEST.MF 2007-03-25 16:11:27.000000000 -0400
@@ -3,8 +3,7 @@
Bundle-Name: Parser Plug-in
Bundle-SymbolicName: org.python.pydev.parser; singleton:=true
Bundle-Version: 0.9.7.1
-Bundle-ClassPath: parser.jar,
- retroweaver-rt.jar
+Bundle-ClassPath: parser.jar
Bundle-Activator: org.python.pydev.parser.ParserPlugin
Bundle-Localization: plugin
Require-Bundle: org.junit,
diff -ru plugins/org.python.pydev.templates/build.properties plugins/org.python.pydev.templates/build.properties
--- plugins/org.python.pydev.templates/build.properties 2005-09-03 14:00:51.000000000 -0400
+++ plugins/org.python.pydev.templates/build.properties 2007-03-25 16:11:34.000000000 -0400
@@ -1,5 +1,4 @@
bin.includes = META-INF/,\
plugin.xml,\
- icons/,\
- retroweaver-rt.jar
+ icons/
jars.compile.order =
diff -ru plugins/org.python.pydev.templates/META-INF/MANIFEST.MF plugins/org.python.pydev.templates/META-INF/MANIFEST.MF
--- plugins/org.python.pydev.templates/META-INF/MANIFEST.MF 2007-03-25 16:12:17.000000000 -0400
+++ plugins/org.python.pydev.templates/META-INF/MANIFEST.MF 2007-03-25 16:11:42.000000000 -0400
@@ -10,4 +10,3 @@
org.eclipse.core.runtime,
org.python.pydev
Eclipse-AutoStart: true
-Bundle-ClassPath: retroweaver-rt.jar
--- NEW FILE eclipse-pydev.spec ---
Epoch: 1
%define gcj_support 1
%define version_major 1
%define version_minor 3
%define version_majmin %{version_major}.%{version_minor}
%define version_micro 1
%define eclipse_base %{_datadir}/eclipse
# All arches line up except i386 -> x86
%ifarch %{ix86}
%define eclipse_arch x86
%else
%define eclipse_arch %{_arch}
%endif
Summary: Eclipse Python development plug-in
Name: eclipse-pydev
Version: %{version_majmin}.%{version_micro}
Release: 5%{?dist}
License: Eclipse Public License
URL: http://pydev.sourceforge.net/
Group: Development/Tools
# The upstream PyDev project does not distribute a source drop conveniently.
# Instead, you must build it by hand. Generate the source zip using the
# enclosed script like so:
# ./fetch-eclipse-pydev.sh pydev \
# :pserver:anonymous at sourceware.org/cvs/eclipse pydev_1_3_1 \
# pydev/org.python.pydev.releng
Source0: eclipse-pydev-fetched-src-pydev_%{version_major}_%{version_minor}_%{version_micro}.tar.bz2
Source1: fetch-eclipse-pydev.sh
# Remove references to the retroweaver jar, since we don't use it
Patch1: %{name}-noretroweaver.patch
# Add a TestDependent class which makes the tests compile
Patch2: %{name}-TestDependent.java.patch
%if %{gcj_support}
BuildRequires: gcc-java >= 4.1.2
BuildRequires: java-1.5.0-gcj-devel >= 1.5.0
Requires(post): java-1.5.0-gcj >= 1.5.0
Requires(postun): java-1.5.0-gcj >= 1.5.0
%else
BuildRequires: java-devel >= 1.5.0
%endif
Requires: eclipse-jdt
Requires: python
Requires: commons-codec >= 1.3
Requires: junit >= 3.8.1
Requires: jython >= 2.2
BuildRequires: eclipse-pde
BuildRequires: jpackage-utils >= 0:1.5
BuildRequires: junit >= 3.8.1
BuildRequires: commons-codec >= 1.3
BuildRequires: jython >= 2.2
%if %{gcj_support}
%else
BuildArch: noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
The eclipse-pydev package contains Eclipse plugins for
Python development.
%prep
%setup -q -c
pushd pydev/org.python.pydev.releng/results/
%patch1 -p0
%patch2 -p0
# Replace all references to 0.9.7.1 with the correct version number
for f in `grep -rl '0.9.7.1' *` ; do
if [ -f $f ]; then
sed --in-place "s/0.9.7.1/%{version_majmin}.%{version_micro}/g" $f
fi
done
# Remove the unused retroweaver jar
find . -name retroweaver-rt.jar -exec rm {} \;
# Remove #!'s from the .py files enclosed in org.python.pydev.jython
for f in `find plugins -name '*.py'` ; do
if [ -f $f ]; then
sed --in-place "s/^#!.*$//" $f
fi
done
# Link to system jars
rm -f plugins/org.python.pydev.core/commons-codec.jar
ln -sf %{_datadir}/java/jakarta-commons-codec.jar \
plugins/org.python.pydev.core/commons-codec.jar
rm -f plugins/org.python.pydev.core/lib/junit.jar
ln -sf %{_datadir}/java/junit.jar \
plugins/org.python.pydev.core/junit.jar
rm -f plugins/org.python.pydev.jython/jython.jar
ln -sf %{_datadir}/java/jython.jar \
plugins/org.python.pydev.jython/jython.jar
popd
%build
# Copy the SDK for build
/bin/sh -x %{eclipse_base}/buildscripts/copy-platform SDK %{eclipse_base}
SDK=$(cd SDK > /dev/null && pwd)
# Eclipse may try to write to the home directory.
mkdir home
homedir=$(cd home > /dev/null && pwd)
# build the main pydev feature
eclipse \
-Duser.home=$homedir \
-application org.eclipse.ant.core.antRunner \
-Dtype=feature \
-Did=org.python.pydev.feature \
-DbaseLocation=$SDK \
-DsourceDirectory=$(pwd) \
-DjavacSource=1.5 -DjavacTarget=1.5 \
-DbuildDirectory=$(pwd)/build \
-Dbuilder=%{eclipse_base}/plugins/org.eclipse.pde.build/templates/package-build \
-f %{eclipse_base}/plugins/org.eclipse.pde.build/scripts/build.xml
%install
rm -rf $RPM_BUILD_ROOT
install -d -m755 ${RPM_BUILD_ROOT}/%{eclipse_base}
unzip -q -d $RPM_BUILD_ROOT%{eclipse_base}/.. \
build/rpmBuild/org.python.pydev.feature.zip
pushd $RPM_BUILD_ROOT%{_datadir}/eclipse/plugins
rm -rf \
org.python.pydev.core_%{version_majmin}.%{version_micro}/commons-codec.jar
ln -sf %{_datadir}/java/jakarta-commons-codec.jar \
org.python.pydev.core_%{version_majmin}.%{version_micro}/commons-codec.jar
mkdir org.python.pydev.core_%{version_majmin}.%{version_micro}/lib
ln -sf %{_datadir}/java/junit.jar \
org.python.pydev.core_%{version_majmin}.%{version_micro}/lib/junit.jar
rm -rf \
org.python.pydev.jython_%{version_majmin}.%{version_micro}/jython.jar
ln -sf %{_datadir}/java/jython.jar \
org.python.pydev.jython_%{version_majmin}.%{version_micro}/jython.jar
popd
%if %{gcj_support}
aot-compile-rpm
%endif
%clean
rm -rf ${RPM_BUILD_ROOT}
%if %{gcj_support}
%post -p /usr/bin/rebuild-gcj-db
%postun -p /usr/bin/rebuild-gcj-db
%endif
%files
%defattr(-,root,root,-)
%{eclipse_base}/features/org.python.pydev*
%{eclipse_base}/plugins/org.python.pydev_*
%{eclipse_base}/plugins/org.python.pydev.ast*
%{eclipse_base}/plugins/org.python.pydev.core*
%{eclipse_base}/plugins/org.python.pydev.debug*
%{eclipse_base}/plugins/org.python.pydev.help*
%{eclipse_base}/plugins/org.python.pydev.parser*
%{eclipse_base}/plugins/org.python.pydev.templates*
%{eclipse_base}/plugins/org.python.pydev.jython*
%{eclipse_base}/plugins/org.python.pydev.refactoring*
%if %{gcj_support}
%{_libdir}/gcj/%{name}
%endif
%changelog
* Fri Apr 27 2007 Igor Foox <ifoox at redhat.com> 1:1.3.1-5
- Add runtime dependancy on the JDT.
- Reorganize Requires and BuildRequires.
* Mon Apr 02 2007 Andrew Overholt <overholt at redhat.com> 1:1.3.1-4
- Remove some whitespace, fix lines > 80 characters.
- Remove unnecessary rm of junit.jar.
- pushd to a deeper directory to fix long lines.
- Add missing popd.
- Typo in buildroot.
* Mon Apr 02 2007 Igor Foox <ifoox at redhat.com> 1:1.3.1-3
- Remove ExclusiveArch.
* Sun Apr 01 2007 Igor Foox <ifoox at redhat.com> 1:1.3.1-2
- Add Jython as a BuildRequires and Requires.
- Fix buildroot.
- Add dist tag.
- Remove pkg_summary and eclipse_name macros.
- Remove eclipse-jdt and eclipse-pde from BR as they are required by PDE.
- Fix permissions on defattr.
- Fix long lines.
- Renumber and comment patches.
- Update and simplify source drop generation comment.
* Tue Mar 27 2007 Igor Foox <ifoox at redhat.com> 1:1.3.1-1
- Update to PyDev 1.3.1.
* Mon Mar 26 2007 Igor Foox <ifoox at redhat.com> 1:1.3.0-2
- Add dependency on jython.
* Sun Mar 25 2007 Igor Foox <ifoox at redhat.com> 1:1.3.0-1
- Update to version 1.3.0.
- Update fetch script to include refactoring package.
- Fixeup changelog epochs.
- Remove #! lines from .py files.
* Sat Mar 24 2007 Igor Foox <ifoox at redhat.com> 1:1.2.5-2
- Update to version 1.2.5.
- Include Jython functionality again.
- Fix spacing issues.
- Remove backport to Java 1.4.
- Change build method to package-build.
- Include script to create the tarball.
* Wed Jun 28 2006 Igor Foox <ifoox at redhat.com> 1:1.1.0-1
- Updated to version 1.1.0 (still backported)
- Excluded Jython functionality
- Removed _fc from version
- Indented
* Thu Feb 09 2006 Igor Foox <ifoox at redhat.com> 1:1.0.6_fc-1
- Building backported version.
* Thu Feb 09 2006 Andrew Overholt <overholt at redhat.com> 1:0.9.3_fc-14
- Build against 3.1.2.
* Fri Dec 16 2005 Andrew Overholt <overholt at redhat.com> 1:0.9.3_fc-13
- Build against gcc 4.1.
* Thu Oct 27 2005 Andrew Overholt <overholt at redhat.com> 1:0.9.3_fc-12
- Re-build.
* Tue Aug 02 2005 Jeff Pound <jpound at redhat.com> 1:0.9.3_fc-11
- Add patch to make python 2.4 default (bz#164847).
* Fri Jul 15 2005 Andrew Overholt <overholt at redhat.com> 1:0.9.3_fc-10
- Use gbenson's new aot-compile-rpm.
* Fri Jul 08 2005 Jeff Pound <jpound at redhat.com> 1:0.9.3_fc-9
- Fix eclipse build specification to be arch independant.
- Fix build.properties javacDebugInfo flag (Robin Green bz#161534)
- Add -g compile option (Robin Green bz#161534)
* Tue Jul 05 2005 Jeff Pound <jpound at redhat.com> 1:0.9.3_fc-8
- Apply Robin Greens patch to explicitly specify archive format (bz#162517)
- Fix spec file description.
* Tue Apr 26 2005 Andrew Overholt <overholt at redhat.com> 1:0.9.3_fc-7
- Re-organize and make use of scripts.
- Remove old tarball from sources.
* Tue Apr 26 2005 Jeff Pound <jpound at redhat.com> 1:0.9.3_fc-6
- Swap zip logic for tarball logic.
- Upgrade to 0.9.3.
- Remove 3.1 compat patch (included in 0.9.3).
* Fri Mar 4 2005 Phil Muldoon <pmuldoon at redhat.com> 1:0.9.0-4_fc
- Added x86_64 to ExclusiveArch
* Thu Mar 3 2005 Jeffrey Pound <jpound at redhat.com> 1:0.9.0-3_fc
- Rewrite for native build.
- Change gcc4 to gcc.
- Add python as requirement.
- Remove -g option for gcj.
* Tue Feb 08 2005 Jeff Pound <jpound at redhat.com> 1:0.9.0-1_fc
- Initial version
--- NEW FILE fetch-eclipse-pydev.sh ---
#!/bin/sh
# Generate a source drop for an PyDev
# Usage message
usage="usage: $0 <project_name> <cvs_root> <cvs_tag> <cvs_directory>"
project_name=$1
cvs_root=$2
cvs_tag=$3
cvs_directory=$4
# Ensure we got all of the variables
if [ "x$project_name"x = "xx" ]
then
echo >&2 "$usage"
exit 1
fi
if [ "x$cvs_root"x = "xx" ]
then
echo >&2 "$usage"
exit 1
fi
if [ "x$cvs_tag"x = "xx" ]
then
echo >&2 "$usage"
exit 1
fi
if [ "x$cvs_directory"x = "xx" ]
then
echo >&2 "$usage"
exit 1
fi
mkdir -p temp/home && cd temp
#cvs -d $cvs_root co -r $cvs_tag $cvs_directory
cvs -d $cvs_root co $cvs_directory
pushd pydev
# This patch adds the new plugins to the map file
patch -p0 << _EOF_
Index: org.python.pydev.releng/maps/pydev.map
===================================================================
RCS file: /cvs/eclipse/pydev/org.python.pydev.releng/maps/pydev.map,v
retrieving revision 1.1
diff -u -p -r1.1 pydev.map
--- org.python.pydev.releng/maps/pydev.map 7 Mar 2005 17:38:25 -0000 1.1
+++ org.python.pydev.releng/maps/pydev.map 12 Jan 2007 20:40:45 -0000
@@ -1,4 +1,10 @@
plugin at org.python.pydev=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
plugin at org.python.pydev.debug=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
plugin at org.python.pydev.help=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
+plugin at org.python.pydev.templates=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
+plugin at org.python.pydev.jython=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
+plugin at org.python.pydev.ast=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
+plugin at org.python.pydev.parser=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
+plugin at org.python.pydev.core=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
+plugin at org.python.pydev.refactoring=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
feature at org.python.pydev.feature=HEAD,:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pydev,,
_EOF_
popd
pushd $cvs_directory
# Fix the map file
sed --in-place "s/HEAD/$cvs_tag/g" maps/pydev.map
sed --in-place "s|cvs.sourceforge.net|pydev.cvs.sourceforge.net|g" maps/pydev.map
# Fetch the actual source
eclipse \
-nosplash \
-Duser.home=../../home \
-application \
org.eclipse.ant.core.antRunner \
-buildfile build.xml \
-DbaseLocation=/usr/share/eclipse \
-Dpde.build.scripts=/usr/share/eclipse/plugins/org.eclipse.pde.build/scripts \
-Dcomponent=sdk \
-DbaseExists=true \
-DmapCvsRoot="$cvs_root" \
fetch
popd
# Make the source tarball
tar jcf eclipse-$project_name-fetched-src-$cvs_tag.tar.bz2 $cvs_directory
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/eclipse-pydev/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 21 Apr 2007 21:19:49 -0000 1.1
+++ .cvsignore 27 Apr 2007 18:56:32 -0000 1.2
@@ -0,0 +1 @@
+eclipse-pydev-fetched-src-pydev_1_3_1.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/eclipse-pydev/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 21 Apr 2007 21:19:49 -0000 1.1
+++ sources 27 Apr 2007 18:56:32 -0000 1.2
@@ -0,0 +1 @@
+0e4080d2995060abfa345bae0d0259f0 eclipse-pydev-fetched-src-pydev_1_3_1.tar.bz2
More information about the fedora-extras-commits
mailing list