mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-23 16:23:52 +02:00
Improve deployment
This commit is contained in:
parent
e4e9cdeb26
commit
c66bdb3131
1 changed files with 33 additions and 10 deletions
|
@ -17,9 +17,11 @@ if [ "$IHOME" = "" ]; then
|
||||||
fi
|
fi
|
||||||
ECL_DIR=$IHOME/eclipse
|
ECL_DIR=$IHOME/eclipse
|
||||||
curdir=`pwd`
|
curdir=`pwd`
|
||||||
NEED_RESTART=0
|
|
||||||
|
|
||||||
#update RSE into deployment directory
|
#update RSE into deployment directory
|
||||||
|
if [ ! -d $IHOME/deploy/rse ]; then
|
||||||
|
mkdir -p $IHOME/deploy/rse
|
||||||
|
fi
|
||||||
cd $IHOME/deploy/rse
|
cd $IHOME/deploy/rse
|
||||||
rm *.zip
|
rm *.zip
|
||||||
echo "Downloading RSE-SDK-latest.zip..."
|
echo "Downloading RSE-SDK-latest.zip..."
|
||||||
|
@ -42,13 +44,15 @@ if [ -e RSE-SDK-latest.zip ]; then
|
||||||
rm -rf plugins
|
rm -rf plugins
|
||||||
fi
|
fi
|
||||||
mv plugins.tmp plugins
|
mv plugins.tmp plugins
|
||||||
NEED_RESTART=1
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Error downloading RSE-SDK-latest.zip"
|
echo "Error downloading RSE-SDK-latest.zip"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#update MTJ into deployment directory
|
#update MTJ into deployment directory
|
||||||
|
if [ ! -d $IHOME/deploy/mtj ]; then
|
||||||
|
mkdir -p $IHOME/deploy/mtj
|
||||||
|
fi
|
||||||
cd $IHOME/deploy/mtj
|
cd $IHOME/deploy/mtj
|
||||||
rm *.zip
|
rm *.zip
|
||||||
echo "Downloading dsdp-mtj-SDK-incubation-latest.zip..."
|
echo "Downloading dsdp-mtj-SDK-incubation-latest.zip..."
|
||||||
|
@ -71,25 +75,44 @@ if [ -e dsdp-mtj-SDK-incubation-latest.zip ]; then
|
||||||
rm -rf plugins
|
rm -rf plugins
|
||||||
fi
|
fi
|
||||||
mv plugins.tmp plugins
|
mv plugins.tmp plugins
|
||||||
NEED_RESTART=1
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Error downloading dsdp-mtj-SDK-incubation-latest.zip"
|
echo "Error downloading dsdp-mtj-SDK-incubation-latest.zip"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
######################### Deploy all #############################
|
||||||
|
echo "Deploying new plug-ins..."
|
||||||
|
NEED_RESTART=0
|
||||||
|
for COMP in rse dd.dsf nab ercp mtj ; do
|
||||||
|
if [ -d "${IHOME}/deploy/${COMP}/plugins" ]; then
|
||||||
|
if [ -d "$ECL_DIR/eclipse/dropins/${COMP}/eclipse/plugins" ]; then
|
||||||
|
diff -r "${IHOME}/deploy/${COMP}/plugins" "$ECL_DIR/eclipse/dropins/${COMP}/eclipse/plugins" >/dev/null
|
||||||
|
result=$?
|
||||||
|
echo "${COMP} RESULT: ${result}"
|
||||||
|
if [ "${result}" != "0" ]; then
|
||||||
|
NEED_RESTART=1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "${COMP} is NEW"
|
||||||
|
NEED_RESTART=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
######################### Restart Infocenter #############################
|
||||||
#update Infocenter with latest deployable plug-ins
|
#update Infocenter with latest deployable plug-ins
|
||||||
if [ "$NEED_RESTART" != "0" ]; then
|
if [ "$NEED_RESTART" != "0" ]; then
|
||||||
echo "Shutting down infocenter..."
|
echo "Shutting down infocenter..."
|
||||||
$IHOME/bin/infocenter.sh shutdown
|
$IHOME/bin/infocenter.sh shutdown
|
||||||
|
|
||||||
echo "Deploying new plug-ins..."
|
|
||||||
######################### Deploy all #############################
|
|
||||||
for COMP in rse dd.dsf nab ercp mtj ; do
|
for COMP in rse dd.dsf nab ercp mtj ; do
|
||||||
if [ -d "$ECL_DIR/eclipse/dropins/${COMP}" ]; then
|
if [ -d "${IHOME}/deploy/${COMP}/plugins" ]; then
|
||||||
rm -rf "$ECL_DIR/eclipse/dropins/${COMP}"
|
if [ -d "$ECL_DIR/eclipse/dropins/${COMP}/eclipse/plugins" ]; then
|
||||||
|
rm -rf "$ECL_DIR/eclipse/dropins/${COMP}"
|
||||||
|
fi
|
||||||
|
mkdir -p "$ECL_DIR/eclipse/dropins/${COMP}/eclipse"
|
||||||
|
cp -Rp $IHOME/deploy/${COMP}/plugins "$ECL_DIR/eclipse/dropins/${COMP}/eclipse/"
|
||||||
fi
|
fi
|
||||||
mkdir -p "$ECL_DIR/eclipse/dropins/${COMP}/eclipse"
|
|
||||||
cp -Rp $IHOME/deploy/${COMP}/plugins "$ECL_DIR/eclipse/dropins/${COMP}/eclipse/"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
#TODO: not sure if we need to delete the old index to force re-indexing
|
#TODO: not sure if we need to delete the old index to force re-indexing
|
||||||
|
|
Loading…
Add table
Reference in a new issue