summaryrefslogtreecommitdiffstats
path: root/abs/extra-testing/xine-lib/xine.install
blob: f9102ee3fcd9fa4447aa00faebf488a58ba2cdf4 (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() {
	 MYTHOME=` su - mythtv -c "echo ~" ` 
	 if [ ! -f $MYTHOME/.xine/config ]
	 then
		 echo "Copying in standard config file for xine"
		 mkdir  -p  $MYTHOME/.xine/
		 cp -rp $TEMPLATES/xine.config.template $MYTHOME/.xine/config
		 chown -R mythtv:mythtv $MYTHOME/.xine
	 fi
 }

# # arg 1: the new package version 
# # arg 2: the old package version 
 post_upgrade() { 
 post_install $1 
 } 
#
# # arg 1: the old package version 
 post_remove() { 
 /bin/true
 } 

op=$1 
shift 

$op $*