summaryrefslogtreecommitdiff
path: root/Jamfile.jam
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-07-11 16:20:24 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2010-07-11 16:20:24 +0000
commitbb77f2c94f0c4919f37fba6509212aadd09c049d (patch)
treef71a6ccdd99653390bdff159556b74fc7d7a663b /Jamfile.jam
parente18b9c6f8188322479ac25728bfdea79ea675bc5 (diff)
Added readme.txt and release build target
git-svn-id: http://pugixml.googlecode.com/svn/trunk@594 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamfile.jam')
-rw-r--r--Jamfile.jam32
1 files changed, 31 insertions, 1 deletions
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 ;