summaryrefslogtreecommitdiffstats
path: root/vlc-branch/vlc-branch.install
blob: dfc5d76f7f6730905572c838a2479ee5912fb14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
post_install() {
  source /etc/profile.d/vlc-branch.sh
# if [ -x "/usr/bin/vlc" ]
#  then
#  	echo "vlc exists" >/dev/null
# else
#  	ln -s /opt/vlc-branch/bin/vlc-branch /usr/bin/vlc
#  	ln -s /opt/vlc-branch/bin/cvlc-branch /usr/bin/cvlc
#  	ln -s /opt/vlc-branch/bin/qvlc-branch /usr/bin/qvlc
#  	ln -s /opt/vlc-branch/bin/rvlc-branch /usr/bin/rvlc
#  	ln -s /opt/vlc/vlc-branch/svlc-branch /usr/bin/svlc
#  	ln -s /opt/vlc/vlc-branch/vlc-wrapper-branch /usr/bin/vlc-wrapper
#  	ln -s /opt/vlc-branch/bin/wxvlc-branch /usr/bin/wxvlc
# fi
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  update-desktop-database -q
}

post_upgrade() {
# post_install $1
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  update-desktop-database -q
}

post_remove() {
# post_install $1
  ##remember removing softlinks, if used:
# rm /usr/bin/vlc /usr/bin/cvlc /usr/bin/qvlc /usr/bin/rvlc /usr/bin/svlc /usr/bin/vlc-wrapper /usr/bin/wxvlc
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
  update-desktop-database -q
}

op=$1
shift
$op $*