-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile.am
69 lines (58 loc) · 2.52 KB
/
Makefile.am
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
DATE = $(shell date +%Y%m%d)
SUBDIRS = \
addons \
src
DIST_SUBDIRS = \
$(SUBDIRS) \
data
install-lib:
make -C src/libxvdr/src install-lib
install-include:
make -C src/libxvdr/src install-include
dist-zip: all
cp -r addons/pvr.vdr.xvdr .
$(STRIP) -s -x pvr.vdr.xvdr/$(ADDONNAME)
zip -9 -r ./pvr.vdr.xvdr-$(VERSION).zip pvr.vdr.xvdr --exclude \*.am \*.in \*Makefile \*.gitignore
rm -Rf pvr.vdr.xvdr
dist-zip-daily: all
cp -r addons/pvr.vdr.xvdr .
cat pvr.vdr.xvdr/addon.xml | sed "s/$(VERSION)/$(VERSION).$(DATE)/g" > pvr.vdr.xvdr/addon.xml.new
mv pvr.vdr.xvdr/addon.xml.new pvr.vdr.xvdr/addon.xml
if !APPLE
$(STRIP) -s -x pvr.vdr.xvdr/$(ADDONNAME)
endif
if MINGW32
zip -9 -r ./pvr.vdr.xvdr-$(VERSION).$(DATE).zip pvr.vdr.xvdr --exclude \*.am \*.in \*Makefile \*.gitignore
else
zip -9 -r ./pvr.vdr.xvdr-$(VERSION).$(DATE).zip pvr.vdr.xvdr --exclude \*.am \*.in \*Makefile \*.gitignore \*.dll
endif
rm -Rf pvr.vdr.xvdr
dist-git: all
GIT_REV=`git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h %ci" HEAD | cut -f1 -d' '` ; \
make VERSION=$$GIT_REV dist
repo: all dist-zip
make -C data all
rm -Rf addon-repository
mkdir -p addon-repository/pvr.vdr.xvdr
cp pvr.vdr.xvdr-$(VERSION).zip addon-repository/pvr.vdr.xvdr
cp addons/pvr.vdr.xvdr/icon.png addon-repository/pvr.vdr.xvdr
cp data/addons.xml addon-repository
cp data/addons.xml.md5 addon-repository
repo-daily: all dist-zip-daily
make -C data all
rm -Rf addon-repository
mkdir -p addon-repository/pvr.vdr.xvdr
cp pvr.vdr.xvdr-$(VERSION).$(DATE).zip addon-repository/pvr.vdr.xvdr
cp addons/pvr.vdr.xvdr/icon.png addon-repository/pvr.vdr.xvdr
cat data/addons.xml | sed "s/$(VERSION)/$(VERSION).$(DATE)/g" > addon-repository/addons.xml
cd addon-repository && md5sum addons.xml > addons.xml.md5
release-repo-daily: repo-daily
cp -r addon-repository/* ~/Dropbox/Public/xbmc-addon-xvdr
repo-zip: all
cd addons && \
zip -9 -r ../repository.xvdr.linux32.zip repository.xvdr.linux32 --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.xvdr.linux64.zip repository.xvdr.linux64 --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.xvdr.rpi.zip repository.xvdr.rpi --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.xvdr.osx.zip repository.xvdr.osx --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.xvdr.osx64.zip repository.xvdr.osx64 --exclude \*.am \*.in \*Makefile \*.gitignore && \
zip -9 -r ../repository.xvdr.win32.zip repository.xvdr.win32 --exclude \*.am \*.in \*Makefile \*.gitignore