Upstream version 2017.1
This commit is contained in:
parent
bc9ab97834
commit
4d99e2a168
24 changed files with 96 additions and 84 deletions
27
intellij-idea-community_2017.1/debian/postinst
Normal file
27
intellij-idea-community_2017.1/debian/postinst
Normal file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
cd /opt/
|
||||
|
||||
## Extract the package
|
||||
sudo tar xf /opt/ideaIC-*
|
||||
|
||||
## Rename the directory
|
||||
sudo mv /opt/idea-IC-* /opt/intellij-idea-community
|
||||
|
||||
## Remove the tar.gz package
|
||||
sudo rm /opt/ideaIC-*
|
||||
|
||||
## Install the .desktop file, if necessary
|
||||
if [ -x "/usr/bin/desktop-file-install" ]; then
|
||||
sudo desktop-file-install /usr/share/applications/intellij-idea-community.desktop
|
||||
fi
|
||||
|
||||
## Switch to new repository, if necessary
|
||||
oldrepo="mmk2410\/intellij-idea-community"
|
||||
newrepo="mmk2410\/intellij-idea"
|
||||
grep -rl "$oldrepo" /etc/apt/sources.list | xargs -r sed -i "s/$oldrepo/$newrepo/g"
|
||||
grep -rl "$oldrepo" /etc/apt/sources.list.d/ | xargs -r sed -i "s/$oldrepo/$newrepo/g"
|
||||
|
||||
##DEBHELPER##
|
Loading…
Add table
Add a link
Reference in a new issue