blob: 6756b033cc80f709d318993dcade1ca2c76af248 (
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
|
all: clean update generate
O_VERSION=1.0.4
C_VERSION=1.0.5
clean:
rm -rf _build/ Build fair-viewer-*.tar.gz MYMETA.{yml,json}
find . -name "*.bs" -delete
find . -name "*.o" -delete
find . -name "*.pm.tdy" -delete
_ROOT_FILES = $(shell find . -type f \( -iname 'META.json' -o -iname 'META.yml' \))
_BIN_FILES = $(shell find ./bin -type f \( -iname 'gtk-fair-viewer' -o -iname 'fair-viewer' \))
_LIB_FILES = $(shell find ./lib/WWW -type f -iname 'FairViewer.pm')
update:
@sed -i "s|v$(O_VERSION)|v$(C_VERSION)|g" $(_ROOT_FILES) $(_BIN_FILES)
@sed -i "s|$(O_VERSION)|$(C_VERSION)|g" $(_LIB_FILES)
generate:
@tar -czf fair-viewer-$(C_VERSION).tar.gz --transform "s|^|fair-viewer-$(C_VERSION)/|" --owner 0 --group 0 \
--exclude '*.bs' \
--exclude '*.o' \
--exclude '*.pm.tdy' \
--exclude '.git' \
-- \
bin lib share t \
Changes LICENSE README.md Artistic-2.0.txt \
Build.PL Makefile.PL MANIFEST MANIFEST.SKIP \
META.json META.yml
|