summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/mythtv/stable-0.23/mp_all.sh
blob: 4aefd8954e371dd5d46b95767ac7cc882c4a8d9f (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
#!/bin/sh
pkgver=23790
pkgrel=1

# NOTE: Make sure to build and install mythtv first BEFORE building anything else
buildlist=('mythtv' 'mytharchive' 'mythbrowser' 'mythgallery' 'mythgame' 'mythmovies' 'mythmusic' 'mythnetvision' 'mythnews' 'mythvideo' 'mythweather' 'mythzoneminder' 'mythweb' 'myththemes' 'morethemes')

# build and install
for i in `echo ${buildlist[@]:0}`
do
	echo "---------- building $i ----------"
	cd ./$i

	# set svn version in the PKGBUILD
	sed -i s/^pkgver=.*/pkgver=$pkgver/ PKGBUILD
	sed -i s/^pkgrel=.*/pkgrel=$pkgrel/ PKGBUILD

	# make the package
	mp -f -i --holdver --skipinteg || exit 1

	# clean up afterwards
	rm -rf pkg
	rm -f *~

	cd ..
done

echo ""
echo "DONE!"