1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-03 23:25:26 +02:00

Avoid invalid symlinks on setup

This commit is contained in:
Martin Oberhuber 2007-04-02 11:00:45 +00:00
parent a8e3b8f48d
commit 190ec2d8f6

View file

@ -160,16 +160,20 @@ if [ ! -d working/build ]; then
mkdir -p working/build
fi
if [ ! -d publish ]; then
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/downloads/drops publish
D=/home/data/httpd/download.eclipse.org/dsdp/tm/downloads/drops
if [ -d ${D} ]; then; ln -s ${D} publish; else; mkdir publish; fi
fi
if [ ! -d testUpdates ]; then
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/testUpdates testUpdates
D=/home/data/httpd/download.eclipse.org/dsdp/tm/testUpdates
if [ -d ${D} ]; then; ln -s ${D} testUpdates; else; mkdir testUpdates; fi
fi
if [ ! -d updates ]; then
ln -s /home/data/httpd/download.eclipse.org/dsdp/tm/updates updates
D=/home/data/httpd/download.eclipse.org/dsdp/tm/updates
if [ -d ${D} ]; then; ln -s ${D} updates; else; mkdir updates; fi
fi
if [ ! -d staging ]; then
ln -s /home/data/httpd/download-staging.priv/dsdp/tm staging
D=/home/data/httpd/download-staging.priv/dsdp/tm
if [ -d ${D} ]; then; ln -s ${D} staging; else; mkdir staging; fi
fi
# create symlinks as needed
@ -179,7 +183,8 @@ fi
if [ ! -h doit_nightly.sh ]; then
ln -s org.eclipse.rse.build/bin/doit_nightly.sh .
fi
if [ ! -e setup.sh ]; then
if [ ! -h setup.sh ]; then
if [ -f setup.sh ]; then; rm -f setup.sh; fi
ln -s org.eclipse.rse.build/bin/setup.sh .
fi
chmod a+x doit_irsbuild.sh doit_nightly.sh