mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-13 03:55:22 +02:00
Improve setup.sh symlink handling
This commit is contained in:
parent
372a6b7978
commit
0e61672910
1 changed files with 25 additions and 16 deletions
|
@ -29,13 +29,13 @@ curdir=`pwd`
|
||||||
# prepare the base Eclipse installation in folder "eclipse"
|
# prepare the base Eclipse installation in folder "eclipse"
|
||||||
if [ ! -f eclipse/plugins/org.eclipse.core.resources_3.3.0.v20070316.jar ]; then
|
if [ ! -f eclipse/plugins/org.eclipse.core.resources_3.3.0.v20070316.jar ]; then
|
||||||
curdir2=`pwd`
|
curdir2=`pwd`
|
||||||
if [ -h eclipse ]; then
|
if [ ! -d eclipse -o -h eclipse ]; then
|
||||||
if [ -d eclipse-3.3m6 ]; then
|
if [ -d eclipse-3.3M6-linux-gtk-ppc ]; then
|
||||||
rm -rf eclipse-3.3m6
|
rm -rf eclipse-3.3M6-linux-gtk-ppc
|
||||||
fi
|
fi
|
||||||
mkdir eclipse-3.3m6
|
mkdir eclipse-3.3M6-linux-gtk-ppc
|
||||||
cd eclipse-3.3m6
|
cd eclipse-3.3M6-linux-gtk-ppc
|
||||||
elif [ -d eclipse ]; then
|
else
|
||||||
rm -rf eclipse
|
rm -rf eclipse
|
||||||
fi
|
fi
|
||||||
## Eclipse Platform 3.3M6
|
## Eclipse Platform 3.3M6
|
||||||
|
@ -48,9 +48,11 @@ if [ ! -f eclipse/plugins/org.eclipse.core.resources_3.3.0.v20070316.jar ]; then
|
||||||
tar xfvz eclipse-SDK-3.3M6-linux-gtk-ppc.tar.gz
|
tar xfvz eclipse-SDK-3.3M6-linux-gtk-ppc.tar.gz
|
||||||
rm eclipse-SDK-3.3M6-linux-gtk-ppc.tar.gz
|
rm eclipse-SDK-3.3M6-linux-gtk-ppc.tar.gz
|
||||||
cd "${curdir2}"
|
cd "${curdir2}"
|
||||||
if [ -h eclipse ]; then
|
if [ ! -d eclipse -o -h eclipse ]; then
|
||||||
rm eclipse
|
if [ -e eclipse ]; then
|
||||||
ln -s eclipse-3.3m6/eclipse eclipse
|
rm eclipse
|
||||||
|
fi
|
||||||
|
ln -s eclipse-3.3M6-linux-gtk-ppc/eclipse eclipse
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -f eclipse/startup.jar ]; then
|
if [ ! -f eclipse/startup.jar ]; then
|
||||||
|
@ -143,25 +145,32 @@ fi
|
||||||
if [ ! -d working/build ]; then
|
if [ ! -d working/build ]; then
|
||||||
mkdir -p working/build
|
mkdir -p working/build
|
||||||
fi
|
fi
|
||||||
if [ ! -e publish ]; then
|
if [ ! -d publish ]; then
|
||||||
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/downloads/drops publish
|
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/downloads/drops publish
|
||||||
fi
|
fi
|
||||||
if [ ! -e testUpdates ]; then
|
if [ ! -d testUpdates ]; then
|
||||||
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/testUpdates testUpdates
|
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/testUpdates testUpdates
|
||||||
fi
|
fi
|
||||||
if [ ! -e udpates ]; then
|
if [ ! -d udpates ]; then
|
||||||
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/updates updates
|
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/updates updates
|
||||||
fi
|
fi
|
||||||
if [ ! -e staging ]; then
|
if [ ! -d staging ]; then
|
||||||
ln -s /home/data/httpd/download-staging.priv/dsdp/tm staging
|
ln -s /home/data/httpd/download-staging.priv/dsdp/tm staging
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create symlinks as needed
|
# create symlinks as needed
|
||||||
ln -s org.eclipse.rse.build/bin/doit_irsbuild.sh .
|
if [ ! -h doit_irsbuild.sh ]; then
|
||||||
ln -s org.eclipse.rse.build/bin/doit_nightly.sh .
|
ln -s org.eclipse.rse.build/bin/doit_irsbuild.sh .
|
||||||
|
fi
|
||||||
|
if [ ! -h doit_nightly.sh ]; then
|
||||||
|
ln -s org.eclipse.rse.build/bin/doit_nightly.sh .
|
||||||
|
fi
|
||||||
|
if [ ! -e setup.sh ]; then
|
||||||
|
ln -s org.eclipse.rse.build/bin/setup.sh .
|
||||||
|
fi
|
||||||
chmod a+x doit_irsbuild.sh doit_nightly.sh
|
chmod a+x doit_irsbuild.sh doit_nightly.sh
|
||||||
cd org.eclipse.rse.build
|
cd org.eclipse.rse.build
|
||||||
chmod a+x build.pl build.rb go.sh nightly.sh
|
chmod a+x build.pl build.rb go.sh nightly.sh setup.sh
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
echo "Your build environment is now created."
|
echo "Your build environment is now created."
|
||||||
|
|
Loading…
Add table
Reference in a new issue