From bb77f2c94f0c4919f37fba6509212aadd09c049d Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 11 Jul 2010 16:20:24 +0000 Subject: Added readme.txt and release build target git-svn-id: http://pugixml.googlecode.com/svn/trunk@594 99668b35-9821-0410-8761-19e4c4f06640 --- Jamfile.jam | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'Jamfile.jam') diff --git a/Jamfile.jam b/Jamfile.jam index 9bba987..9e41cda 100644 --- a/Jamfile.jam +++ b/Jamfile.jam @@ -106,8 +106,9 @@ for CONFIG in $(CONFIGURATIONS) # documentation Documentation docs/manual.html : docs/manual.qbk : docs/manual.xsl ; +Documentation docs/quickstart.html : docs/quickstart.qbk : docs/quickstart.xsl ; -Alias docs : docs/manual.html ; +Alias docs : docs/manual.html docs/quickstart.html ; # samples for SAMPLE in [ Glob docs/samples : *.cpp ] @@ -133,3 +134,32 @@ for SAMPLE in [ Glob docs/samples : *.cpp ] Depends samples : $(EXECUTABLE)_run ; } + +# release +VERSION = 0.9 ; +RELEASE_FILES = + [ Glob contrib : *.cpp *.hpp ] + [ Glob src : *.cpp *.hpp ] + [ Glob docs : *.html *.css ] + [ Glob docs/samples : *.cpp *.hpp *.xml ] + [ Glob docs/images : *.png ] + [ Glob docs/manual : *.html ] + @("scripts/**":W=:X=svn) + readme.txt + ; + +actions ZipAction +{ + zip -q -9 $(<) $(>) +} + +actions TgzAction +{ + tar cf $(<:S=) $(>) + gzip -9 $(<:S=) +} + +ZipAction pugixml-$(VERSION).zip : $(RELEASE_FILES) ; +TgzAction pugixml-$(VERSION).tar.gz : $(RELEASE_FILES) ; +Depends release : pugixml-$(VERSION).zip pugixml-$(VERSION).tar.gz : $(RELEASE_FILES) ; +NotFile release ; -- cgit v1.2.3