source: nscp/bjam/zip.jam @ 55e44d4

0.4.00.4.10.4.2stable
Last change on this file since 55e44d4 was 55e44d4, checked in by Michael Medin <michael@…>, 4 years ago

Added new command: assert which causes program to assert (and "crash") which I will use to test the debug builds.
Also reworked the build scripts to work better and such

  • Property mode set to 100644
File size: 640 bytes
Line 
1import type ;
2import generators ;
3import feature : feature get-values ;
4import toolset : flags ;
5
6feature source-folder : : path free ;
7feature exclude : : free ;
8feature recursive : off on : propagated ;
9
10type.register ZIP : zip ;
11generators.register-composing bjam/zip.make-zip : : ZIP ;
12flags bjam/zip.make-zip SOURCE_FOLDER <source-folder> ;
13flags bjam/zip.make-zip EXCLUDES <exclude> : -x ;
14flags bjam/zip.make-zip FLAGS <recursive>on : -r ;
15
16actions make-zip {
17        echo 7z.exe a -tzip -bd "$(<)" "$(FLAGS)" "$(SOURCE_FOLDER)" "-x!$(EXCLUDES)"
18        7z.exe a -tzip -bd "$(<)" "$(FLAGS)" "$(SOURCE_FOLDER)" "-x!$(EXCLUDES)"
19}
Note: See TracBrowser for help on using the repository browser.