summaryrefslogtreecommitdiff
path: root/media-tv/xbmc/files/generate.sh
blob: 1e610a7a2c6cd01387b8f308bd0b0f06d05a6b0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -eux

PV=$1
PN=xbmc
P="${PN}-${PV}"
DISTDIR="/usr/portage/distfiles"

rm -rf ${PN}-*/
tar xf ${DISTDIR}/${P}.tar.gz
cd ${PN}-*/
make codegenerated -f codegenerator.mk -j
cd ..
tar cf - ${PN}-*/xbmc/interfaces/python/generated/*.cpp | xz > ${DISTDIR}/${P}-generated-addons.tar.xz
rm -rf ${PN}-*/