summaryrefslogtreecommitdiff
path: root/Jamfile.jam
diff options
context:
space:
mode:
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 ;