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
18 if [ -z "$DEV_IDEA_HOME" ]; then
19 echo DEV_IDEA_HOME must be defined and point to source base your're updating from
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
31 cp -R $DEV_IDEA_HOME/out
/deploy
/* $WORK_IDEA_HOME
33 cd $WORK_IDEA_HOME/bin