66c4c96dca33d216035a5b71733cf14f55074f36 — Rory Bradford 26 days ago
update build
5 files changed, 21 insertions(+), 13 deletions(-)

M .gitignore
D Dockerfile
M Makefile
M control
A ddb.ini
M .gitignore => .gitignore +1 -1
@@ 1,4 1,4 @@ nini
  nini_deb/
- *.deb
+ output/
  

D Dockerfile => Dockerfile +0 -6
@@ 1,6 0,0 @@-FROM debian:buster-slim
- WORKDIR /root
- COPY . .
- RUN apt update
- RUN dpkg -i nini_deb.deb; apt install -fy
- RUN ./test

M Makefile => Makefile +9 -5
@@ 7,15 7,19 @@ test: build
  	./test
  
- deb: test
+ deb-prepare: test
  	mkdir -p $(prefix)
  	mkdir -p $(name)/DEBIAN
  	cp -v control $(name)/DEBIAN/
  	cp ./nini $(prefix)
- 	dpkg-deb --build $(name)
+ 
+ deb: deb-prepare
+ 	mkdir -p output
+ 	ddb ddb.ini $(name) output
  
  clean:
- 	@rm -fv nini
- 	@rm -rfv $(name)
+ 	rm -fv nini
+ 	rm -rfv $(name)
+ 	rm -rfv output
  
- .PHONY: clean test build deb
+ .PHONY: clean test build deb deb-prepare

M control => control +3 -1
@@ 1,7 1,9 @@ Package: nini
- Version: 1.0.0
+ Version: 1.0.0-1-{{release}}
  Depends: libinih1
  Maintainer: Rory Bradford <roryrjb@gmail.com>
  Architecture: amd64
+ Section: devel
+ Priority: optional
  Description: nanoscopic ini file reader
  

A ddb.ini => ddb.ini +8 -0
@@ 0,0 1,8 @@
+ [config]
+ name = nini
+ 
+ [images]
+ xenial = ubuntu:16.04
+ bionic = ubuntu:18.04
+ stretch = debian:stretch
+ buster = debian:buster