From 8deea28b78299717494e1d0840059321fd23590a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 4 Jan 2012 09:38:53 -0700 Subject: mingw.bld has a package target. It builds a zipfile with git describe in the filename. --- mingw.bld | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/mingw.bld b/mingw.bld index 88311e2..e4f923f 100644 --- a/mingw.bld +++ b/mingw.bld @@ -22,8 +22,27 @@ action "clean" clean: targets(); } +ZIPFILE = "stage-$(git describe).zip"; +ZIPINPUT = [ + "stage.exe", + "bloodfields.stage" +]; + +action "package" +{ + build: [ZIPFILE]; +} + CXXFLAGS += "-ggdb"; +target ZIPFILE +{ + profile "build" + { + execute("zip -9 ${ZIPFILE} ${ZIPINPUT}"); + } +} + target "stage.exe" { input [ -- cgit v1.2.3