/[pkgs]/rpms/eclipse/devel/eclipse-copy-platform.sh
ViewVC logotype

Contents of /rpms/eclipse/devel/eclipse-copy-platform.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download) (as text)
Wed Aug 6 18:24:29 2008 UTC (15 months, 2 weeks ago) by overholt
Branch: MAIN
CVS Tags: eclipse-3_5_0-0_3_30_fc12, eclipse-3_4_2-4_fc11, eclipse-3_5_0-0_2_fc12, eclipse-3_5_0-0_3_27_fc12, eclipse-3_5_0-0_3_9_fc12, eclipse-3_5_0-0_3_26_fc12, eclipse-3_5_0-0_8_fc12, eclipse-3_4_2-2_fc11, eclipse-3_4_1-12_fc11, eclipse-3_5_0-0_5_fc12, eclipse-3_5_0-0_1_11_fc12, eclipse-3_4_1-1_fc10, eclipse-3_4_1-13_fc11, eclipse-3_5_0-0_2_2_fc12, eclipse-3_5_0-4_fc13, eclipse-3_5_0-0_3_34_fc12, eclipse-3_5_1-1_fc13, eclipse-3_5_0-0_9_fc12, eclipse-3_4_1-14_fc11, eclipse-3_4_2-1_fc11, eclipse-3_4_0-22_fc10, eclipse-3_4_1-5_fc10, F-11-split, eclipse-3_5_0-0_2_4_fc12, eclipse-3_4_0-20_fc10, eclipse-3_4_2-6_fc11, eclipse-3_5_0-0_12_fc12, eclipse-3_5_0-0_3_25_fc12, eclipse-3_5_0-0_7_fc12, eclipse-3_5_0-0_3_31_fc12, eclipse-3_4_0-17_fc10, eclipse-3_5_0-0_2_7_fc12, eclipse-3_5_1-4_fc13, eclipse-3_4_1-2_fc10, eclipse-3_5_0-0_1_9_fc12, eclipse-3_4_1-6_fc10, eclipse-3_5_0-0_1_12_fc12, eclipse-3_5_0-0_2_5_fc12, F-10-split, eclipse-3_5_0-0_2_8_fc12, eclipse-3_4_1-11_fc11, eclipse-3_4_1-15_fc11, eclipse-3_4_0-24_fc10, eclipse-3_5_0-0_3_33_fc12, eclipse-3_4_0-23_fc10, eclipse-3_5_0-0_3_28_fc12, eclipse-3_5_0-2_fc12, eclipse-3_4_2-3_fc11, eclipse-3_5_0-0_2_1_fc12, eclipse-3_4_1-3_fc10, eclipse-3_5_1-2_fc13, eclipse-3_4_1-7_fc11, eclipse-3_4_2-5_fc11, eclipse-3_5_0-0_2_6_fc12, eclipse-3_5_0-1_fc12, eclipse-3_5_0-0_2_9_fc12, eclipse-3_4_1-4_fc10, eclipse-3_5_0-0_3_35_fc12, eclipse-3_5_0-0_10_fc12, eclipse-3_5_0-0_6_fc12, eclipse-3_4_1-8_fc11, eclipse-3_5_0-0_11_fc12, eclipse-3_5_0-3_fc13, eclipse-3_5_1-5_fc13, eclipse-3_4_0-21_fc10, F-12-split, eclipse-3_5_0-0_3_32_fc12, eclipse-3_4_1-16_fc11, eclipse-3_4_0-18_fc10, eclipse-3_5_0-0_2_3_fc12, eclipse-3_5_0-0_1_10_fc12, eclipse-3_5_1-3_fc12, eclipse-3_5_1-3_fc13, eclipse-3_4_1-9_fc11, eclipse-3_5_0-0_13_fc12, eclipse-3_5_0-0_3_29_fc12, eclipse-3_5_0-0_1_8_fc12, eclipse-3_5_0-0_4_0_fc12, eclipse-3_4_0-19_fc10
Changes since 1.8: +1 -1 lines
File MIME type: application/x-shellscript
* Wed Aug 06 2008 Andrew Overholt <overholt@redhat.com> 3.4.0-17
- Add p2 metadata generation to package-build and pdebuild
- Fix symlinking to %{_libdir}/eclipse/dropins/* stuff in
  copy-platform
- Fix brightness in splash screen
- Fix icon symlinks
1 #! /bin/sh
2
3 # We need to make our own copy of the eclipse platform in order to
4 # build against it. We do this since the build root might already
5 # contain a copy of the plugin we are building -- and the eclipse
6 # releng scripts fail in this situation. We put this script in the
7 # eclipse core so that it is easy to use from other spec files.
8
9 # Arguments are:
10 # * directory where results should end up (script will make it)
11 # * base location of eclipse platform install
12 # * an optional string that is used to select non-platform
13 # plugins and features. At present if a plugin or feature has
14 # this as a substring, it will be included. You need only run
15 # this script once, it will link both the platform and the other
16 # optionally-selected parts in a single invocation.
17
18 # Test to see if the minimum arguments
19 # are specified
20
21 if [ $# -lt 2 ]; then
22 echo "Usage: copy-platform where eclipse_base optional_directories"
23 echo "For example: copy-plaform ~/SDK /usr/lib/eclipse cdt pydev jdt"
24 exit 1
25 fi
26
27 where=$1; shift
28 eclipse=$1; shift
29
30 datadir=/usr/share/eclipse
31
32 mkdir -p $where/plugins $where/features
33 cd $where
34
35 # Are there any optional arguments left?
36 if [ $# -gt 0 ]; then
37 for optional in "$@"; do
38 (cd $eclipse; ls -d plugins/*"$optional"* features/*"$optional"*) |
39 while read f; do
40 [ ! -e $f ] && ln -s $eclipse/$f $f
41 done
42 (cd $eclipse/dropins; ls -d *"$optional"*) |
43 while read f; do
44 if [ -e $eclipse/dropins/$f/eclipse ]; then
45 (cd $eclipse/dropins/$f/eclipse; ls -d plugins/* features/*) |
46 while read g; do
47 [ ! -e $g ] && \
48 ln -s $eclipse/dropins/$f/eclipse/$g $g
49 done
50 else
51 (cd $eclipse/dropins/$f; ls -d plugins/* features/*) |
52 while read g; do
53 [ ! -e $g ] && \
54 ln -s $eclipse/dropins/$f/$g $g
55 done
56 fi
57 done
58 (cd $datadir/dropins; ls -d *"$optional"*) |
59 while read f; do
60 if [ -e $datadir/dropins/$f/eclipse ]; then
61 (cd $datadir/dropins/$f/eclipse; ls -d plugins/* features/*) |
62 while read g; do
63 [ ! -e $g ] && \
64 ln -s $datadir/dropins/$f/eclipse/$g $g
65 done
66 else
67 (cd $datadir/dropins/$f; ls -d plugins/* features/*) |
68 while read g; do
69 [ ! -e $g ] && \
70 ln -s $datadir/dropins/$g $g
71 done
72 fi
73 done
74 done
75 fi
76
77 # Code after this point is automatically created by eclipse.spec.

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2