summaryrefslogtreecommitdiffstats
path: root/abs/extra/mythappletrailers/mythappletrailers.install
blob: 452fb1677bc2a3f7102f72fe1ecff73fc19b7c26 (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
# arg 1:  the new package version
post_install() {
  ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml
  /usr/LH/bin/gen_is_xml.py
}
# arg 1:  the new package version
# arg 2:  the old package version
post_upgrade() {
  /usr/LH/bin/gen_is_xml.py
  if [ -e /usr/share/mythtv/themes/defaultmenu/appletrailer.xml ]
  then
  	exit
  else	
      ln -s /home/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaultmenu/appletrailer.xml
  fi
}

# arg 1:  the old package version
post_remove() {
    rm -fr /usr/share/mythtv/appletrailer.xml /usr/share/mythtv/themes/defaulmenu/mythappletrailer.xml
    mv /usr/share/mythtv/themes/defaultmenu/is.xml /tmp/is.xml.tmp
    /usr/LH/bin/gen_is_xml.py
}

op=$1
shift
$op $*