Scriptlet to disable certain modules
[fedora-idea.git] / disablemodules.sh
blobe0aaad222acdd87d9ea703c3aa6b7bfda17ea2d9
1 #MODULES=$(sed -n 's|.*module.*/plugins/[^/]*/\([^/]*\)\.iml.*|\1|p' .idea/modules.xml |sort |uniq)
2 #MODULES=$(sed -n 's|.*module.*/plugins/.*/\([^/]*\)\.iml.*|\1|p' .idea/modules.xml |sort |uniq)
3 #MODULES="jetgroovy jetgroovy-tests" # groovy too new?
4 #MODULES="$MODULES IntelliLangJava" # depends on groovy
5 #MODULES="$MODULES cvs-core cvs-plugin" # patched trilead
6 #MODULES="$MODULES svn4idea svn4idea-tests" # patched svnkit
7 MODULES="$MODULES maven" # dependencies
9 for M in $MODULES
11 sed -i "s|<\(module.*/plugins/.*/$M.iml.*\)>|<!-- \1 -->|" .idea/modules.xml
12 sed -i "s|<\([^!].*module-name=\"$M\".*\)>|<!-- \1 -->|" community-main.iml
13 done
15 exit 0
16 awk '/^ }/ {if (plugins) plugins--}
17 {if (!plugins) print}
18 /dir\("plugins"\)/ {plugins++}' <build/scripts/layouts.gant >build/scripts/layouts.gant.new
19 mv build/scripts/layouts.gant.new build/scripts/layouts.gant