Blame eclipse-copy-platform.sh
|
cvsdist |
38d0d0c |
#! /bin/sh
|
|
cvsdist |
38d0d0c |
|
|
cvsdist |
38d0d0c |
# We need to make our own copy of the eclipse platform in order to
|
|
cvsdist |
38d0d0c |
# build against it. We do this since the build root might already
|
|
cvsdist |
38d0d0c |
# contain a copy of the plugin we are building -- and the eclipse
|
|
cvsdist |
38d0d0c |
# releng scripts fail in this situation. We put this script in the
|
|
cvsdist |
38d0d0c |
# eclipse core so that it is easy to use from other spec files.
|
|
cvsdist |
38d0d0c |
|
|
cvsdist |
38d0d0c |
# Arguments are:
|
|
cvsdist |
38d0d0c |
# * directory where results should end up (script will make it)
|
|
cvsdist |
38d0d0c |
# * base location of eclipse platform install
|
|
cvsdist |
8c8401f |
# * an optional string that is used to select non-platform
|
|
cvsdist |
8c8401f |
# plugins and features. At present if a plugin or feature has
|
|
cvsdist |
8c8401f |
# this as a substring, it will be included. You need only run
|
|
cvsdist |
8c8401f |
# this script once, it will link both the platform and the other
|
|
cvsdist |
8c8401f |
# optionally-selected parts in a single invocation.
|
|
cvsdist |
38d0d0c |
where=$1
|
|
cvsdist |
38d0d0c |
eclipse=$2
|
|
cvsdist |
8c8401f |
optional=$3
|
|
cvsdist |
38d0d0c |
|
|
cvsdist |
38d0d0c |
mkdir $where
|
|
cvsdist |
38d0d0c |
cd $where
|
|
cvsdist |
38d0d0c |
mkdir plugins features
|
|
cvsdist |
38d0d0c |
|
|
cvsdist |
8c8401f |
if test -n "$optional"; then
|
|
cvsdist |
8c8401f |
(cd $eclipse; ls -d plugins/*"$optional"* features/*"$optional"*) |
|
|
cvsdist |
8c8401f |
while read f; do
|
|
cvsdist |
8c8401f |
ln -s $eclipse/$f $f
|
|
cvsdist |
8c8401f |
done
|
|
cvsdist |
8c8401f |
fi
|
|
cvsdist |
8c8401f |
|
|
cvsdist |
38d0d0c |
# Code after this point is automatically created by eclipse.spec.
|