blob: dca1b37b9d254174fa60f2e0238a51b1a40f9f5b (
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
31
32
33
34
35
36
37
38
39
|
VERSION=$(shell grep '<version>' appinfo/info.xml | sed -e 's/^.*<version>\(.*\)<\/version>.*$$/\1/')
.PHONY: dist
dist: owncloud-collabora-online.spec appinfo/info.xml
rm -rf owncloud-collabora-online-$(VERSION)
mkdir owncloud-collabora-online-$(VERSION)
tar cf - *.php \
appinfo \
assets \
controller \
css \
img \
js \
l10n \
lib \
templates \
| ( cd owncloud-collabora-online-$(VERSION) && tar xf - )
tar cfz owncloud-collabora-online-$(VERSION).tar.gz owncloud-collabora-online-$(VERSION)
rm -rf owncloud-collabora-online-$(VERSION)
app: appinfo/info.xml
rm -rf richdocuments
mkdir richdocuments
tar cf - *.php \
appinfo \
assets \
controller \
css \
img \
js \
l10n \
lib \
templates \
| ( cd richdocuments && tar xf - )
zip -r richdocuments.zip richdocuments
rm -rf richdocuments
owncloud-collabora-online.spec: owncloud-collabora-online.spec.in appinfo/info.xml
sed -e 's/@PACKAGE_VERSION@/$(VERSION)/g' <owncloud-collabora-online.spec.in >owncloud-collabora-online.spec
|