PHP heredoc injections
[fedora-idea.git] / build / update.sh
blobf37a360464c399ea3bead0e2090b52b8a0566aff
1 #! /bin/bash
3 # This script updates your IntelliJ IDEA CE installation from the latest compiled classes. This way you can easily
4 # upgrade your working IDEA to the latest changes.
6 # Before you run the script, ensure you have the following:
7 # 1. Your project for IntelliJ IDEA CE is fully built (do 'Rebuild Project' if you're not sure)
8 # 2. WORK_IDEA_HOME points to the directory of IntelliJ IDEA build you want to upgrade
9 # 3. DEV_IDEA_HOME points to the directory of the project you built at step 1
10 # 4. You quit IntelliJ IDEA
13 if [ -z "$WORK_IDEA_HOME" ]; then
14 echo WORK_IDEA_HOME must be defined and point to build you're updating
15 exit
18 if [ -z "$DEV_IDEA_HOME" ]; then
19 echo DEV_IDEA_HOME must be defined and point to source base your're updating from
20 exit
23 echo Updating $WORK_IDEA_HOME from compiled classes in $DEV_IDEA_HOME
25 rm -rf $WORK_IDEA_HOME/lib
26 rm -rf $WORK_IDEA_HOME/plugins
28 ant -f update.xml
30 cd $DEV_IDEA_HOME
31 cp -R $DEV_IDEA_HOME/out/deploy/* $WORK_IDEA_HOME
33 cd $WORK_IDEA_HOME/bin