diff options
Diffstat (limited to 'lombok-eclipse.install')
-rw-r--r-- | lombok-eclipse.install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lombok-eclipse.install b/lombok-eclipse.install new file mode 100644 index 000000000000..f660a299406a --- /dev/null +++ b/lombok-eclipse.install @@ -0,0 +1,27 @@ +# Colored makepkg-like functions by Det +msg_blue() { + printf "${blue}==>${bold} $1${all_off}\n" +} + +note() { + printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" +} + +all_off="$(tput sgr0)" +bold="${all_off}$(tput bold)" +blue="${bold}$(tput setaf 4)" +yellow="${bold}$(tput setaf 3)" + +post_install() { + java -jar /usr/lib/lombok-common/lombok.jar install /usr/lib/eclipse || exit 1 + note "You must add lombok.jar or lombok-api.jar to the build path of each Lombok-dependent project." +} + +post_upgrade() { + post_install +} + +pre_remove() { + java -jar /usr/lib/lombok-common/lombok.jar uninstall /usr/lib/eclipse || exit 1 +} + |