panych
5/12/2015 - 8:26 PM

Simple jar package builder for IDEA color theme

Simple jar package builder for IDEA color theme

#!/bin/bash
# Originaly: https://github.com/jkaving/intellij-colors-solarized/blob/master/buildjar.sh

# Create the "colors" directory for the scheme files
# and copy all passed file there
mkdir colors
cp $* colors

# Create an empty "IntelliJ IDEA Global Settings" file,
# needed to be able to import the JAR using "Import Settings..."
touch IntelliJ\ IDEA\ Global\ Settings

# Create the JAR file
jar cfM settings.jar IntelliJ\ IDEA\ Global\ Settings colors

# Cleanup
rm -r colors
rm IntelliJ\ IDEA\ Global\ Settings

echo "IntelliJ IDEA settings.jar created for themes: $*"