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

Automatically get latest built plugins

This commit is contained in:
Martin Oberhuber 2006-08-11 16:08:06 +00:00
parent 498c754c16
commit 636d0f9e11

View file

@ -14,11 +14,21 @@ umask 002
# patch site.xml
cd ..
SITE=`pwd`
TAG=`ls features | head -1 | sed -e 's,[^_]*_[0-9.]*\([^.]*\).jar,\1,'`
rm site.xml web/site.xsl
cvs -q update -d
if [ `basename $SITE` = testUpdates ]; then
echo "Working on test update site"
REL==`ls $HOME/ws/working/package | sort | tail -1`
if [ "$REL" != "" ]; then
DIR="$HOME/ws/working/package/$REL"
if [ -d "$DIR/features" ]; then
echo "Copying new plugins and features from $DIR"
rm -rf features
rm -rf plugins
cp -R $DIR/features .
cp -R $DIR/plugins .
fi
fi
sed -e 's,/dsdp/tm/updates,/dsdp/tm/testUpdates,g' \
-e 's,Project Update,Project Test Update,g' \
site.xml > site.xml.new
@ -29,6 +39,7 @@ if [ `basename $SITE` = testUpdates ]; then
else
echo "Working on official update site"
fi
TAG=`ls features | head -1 | sed -e 's,[^_]*_[0-9.]*\([^.]*\).jar,\1,'`
sed -e "s,200607201800,$TAG,g" \
site.xml > site.xml.new
mv -f site.xml.new site.xml