File tree Expand file tree Collapse file tree 1 file changed +24
-8
lines changed
Expand file tree Collapse file tree 1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change 11
2+ VERSION := $(shell git describe --dirty |cut -c2-)
3+
24.PHONY : all
3- all : clean docs packed
5+ all : dist
46
5- .PHONY : docs
6- docs :
7+ dist/doc-$(VERSION ) .tar.gz :
78 mkdir -p dist/doc/bash
89 for inc in $$ (find bash -name \* .sh); do \
910 mdname=$$(echo $$inc | sed -e 's/\.sh/\.md/' ) ; \
10- bashadoc $$ inc > dist/doc/$$ mdname ; done
11+ bash/bashadoc $$ inc > dist/doc/$$ mdname ; done
12+ tar -zcf dist/doc-$(VERSION ) .tar.gz -C dist doc
13+ rm -rf dist/doc
14+
15+ dist/bin-$(VERSION ) .tar.gz :
16+ mkdir -p dist/bin
17+ for s in $$ (find bash -type f -exec grep -q " includer" {} \; -print| grep -v " .sh$$ " ); do \
18+ base=$$(basename $$s) ; \
19+ bash/pack-script -v -f $$ s -o dist/bin/$$ base ; \
20+ done
21+ tar -zcf dist/bin-$(VERSION ) .tar.gz -C dist bin
22+ rm -rf dist/bin
1123
12- .PHONY : packed
13- packed :
14- mkdir dist/packed
15- bash/pack-script -f bash/k8s-support-collector -o dist/packed/k8s-support-collector
24+ dist/lib-$(VERSION ) .tar.gz :
25+ mkdir -p dist/lib
26+ cp bash/* .sh dist/lib
27+ tar -zcf dist/lib-$(VERSION ) .tar.gz -C dist lib
28+ rm -rf dist/lib
1629
1730.PHONY : clean
1831clean :
1932 rm -rf dist
2033
2134.PHONY : test
35+
36+ .PHONY : dist
37+ dist : dist/doc-$(VERSION ) .tar.gz dist/bin-$(VERSION ) .tar.gz dist/lib-$(VERSION ) .tar.gz
You can’t perform that action at this time.
0 commit comments