2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-20 14:42:14 +00:00
Commit Graph

42 Commits

Author SHA1 Message Date
Vladimir Prus
45be175435 Fix off-by-one error in builtin_shell. The result contained one random
character at the end.


[SVN r30452]
2005-08-04 06:38:41 +00:00
Rene Rivera
42ebfffce8 Add SHELL, execute command an capture output, builtin. Original work from Craig Rodrigues, implemented slightly modified.
[SVN r30027]
2005-07-13 04:26:01 +00:00
Vladimir Prus
a9144a5ec3 Revamp path.glob.
The problem with the previous implementation is that it would iterate
over all elements in a dir even if 'pattern' had no metacharacters. First,
that was slow -- if you handed

  /cygdrive/w/My Documents/boost/test/a.cpp

to it, it would crawl all the way to the top, listing each directory and
checking each file. Second, it would fail, because Cygwin is broken and
does not show 'cygdrive' is the list of directory elements of '/'.

Now we check if a pattern has metacharacters, and if not, just do
a simple 'timestamp' call.

The new glob is implemented as new 'GLOB-RECURSIVELY' builtin. I've decided
to use builtin since otherwise, we'd need 'does this name exist' builtin,
and if we need new builtin, why don't implement all globbing in core.


[SVN r29163]
2005-05-24 07:57:56 +00:00
Vladimir Prus
e98ac4ece6 Initial Python integration support. Disabled by default, find and
change the setting of HAVE_PYTHON in build.jam to enable it.


[SVN r27559]
2005-03-05 07:59:14 +00:00
Dave Abrahams
5539d6e2b9 jam_src/
builtins.{c,h}
        Support for the REBUILDS rule
        remove unused variable

    rules.h
    make.c
        Support for the REBUILDS rule

    make1.c
        Support for the REBUILDS rule

        Support for recording timing information

        Restructured a case statement because it was masking a bug I
        introduced.

    execcmd.h
    execnt.c
    execunix.c
        Support for recording timing information
        Also removed NT-specific stuff from execunix

    expand.c
        Removed tabs from critical comment
        Added tab-width variable setting comment for emacs.

v2/test
    rebuilds.py, timedata.py, test_all.py
        Tests for REBUILDS and timing.


[SVN r27334]
2005-02-12 02:30:18 +00:00
Vladimir Prus
8a9d9cad5d New builtin CHECK_IF_FILE, which check is a path refers to a regular file,
or something else.


[SVN r26572]
2004-12-22 07:33:12 +00:00
Vladimir Prus
49aa05d3b4 New builtins USER_MODULE and NEAREST_USER_LOCATION. V2 changes and
explanations are coming later.


[SVN r26466]
2004-12-07 10:21:25 +00:00
Rene Rivera
6e007a1b64 Part 1 and 2 of http://article.gmane.org/gmane.comp.lib.boost.build/6997 - Add ability to mark targets as rquired to be files (ISFILE).
[SVN r26234]
2004-11-18 19:38:16 +00:00
Vladimir Prus
f2df997306 Optimize library ordering by native rules.
[SVN r22281]
2004-02-16 08:30:13 +00:00
Vladimir Prus
8e1a189707 Make 'sequence.select-highest-ranked' native.
[SVN r21217]
2003-12-11 09:02:01 +00:00
Vladimir Prus
2aa468d556 Make 'property-set.create' native.
[SVN r21207]
2003-12-10 14:57:14 +00:00
Vladimir Prus
8dacac3c02 Add native version of 'regex.transform'. The rule is used during header
scanning, so should be as fast as possible.


[SVN r21205]
2003-12-10 11:29:09 +00:00
Vladimir Prus
b03372ac97 The 'path.exists' rule is now native.
[SVN r21201]
2003-12-10 08:27:21 +00:00
Vladimir Prus
f8d7d9ce63 Implement NATIVE_RULE builtin and native version of set.difference.
[SVN r21198]
2003-12-10 07:57:22 +00:00
Vladimir Prus
582324b8ef Add new W32_GETREG builtin.
Patch from Paul Lin


[SVN r20859]
2003-11-19 14:31:07 +00:00
Vladimir Prus
5d9f30ac29 Optimize the numbers module by new CALC builtin.
Patch from Pedro Ferreira.


[SVN r20434]
2003-10-21 06:48:04 +00:00
Rene Rivera
c6af8a74b7 Fix compilation for conforming C compilers, in this case VC7. Variable declarations are only allowed at the start of scopes, not in the middle like C++.
[SVN r19455]
2003-08-05 04:48:28 +00:00
Vladimir Prus
9ff2227563 New builtin NORMALIZE_PATH.
[SVN r19431]
2003-08-04 09:29:28 +00:00
Vladimir Prus
5e191e6cc6 New builtin SORT.
[SVN r19430]
2003-08-04 09:27:47 +00:00
Vladimir Prus
6070dd8fd6 Refactorings.
* jam_src/modules.c: (import_module, imported_modules): New functions.
* jam_src/builtins.c (builtin_import_module, builtin_imported_modules):
  Just call the above.
* new/class.jam: Add some extra tests.


[SVN r19424]
2003-08-04 09:09:49 +00:00
Vladimir Prus
d6dfb4f9db Introduce new-style classes. They are declared by 'xclass' and instances
are created by 'xnew'. Those names will be changed when all classes are
migrated.


[SVN r19423]
2003-08-04 09:01:54 +00:00
Vladimir Prus
262fff312e Speed up module imports.
* jam_src/builtins.c: New builtins IMPORT_MODULE and IMPORTED_MODULES.
  jam_src/rules.c: (bindrule): Refactor. (lookup_rule): New function.

* kernel/modules.jam: Make use of IMPORT_MODULE.


[SVN r19422]
2003-08-04 08:45:41 +00:00
Toon Knapen
31664c7b50 removed own (incorrect) signature of regex_compile, including compile.h now for the signature
[SVN r19038]
2003-07-11 06:30:40 +00:00
Toon Knapen
f4826cf9ab port to sunpro
[SVN r19022]
2003-07-10 12:09:28 +00:00
Vladimir Prus
9154b67026 Bugfix.
* jam_src/make1.c
  (make1c): Don't change function-scope 't' variable inside some if scope.
  Use another variable in that scope.


[SVN r18983]
2003-07-09 05:49:12 +00:00
Vladimir Prus
3ea74bbb4f Handle include dependencies between generated sources correctly.
[SVN r18889]
2003-06-30 14:24:20 +00:00
Vladimir Prus
7cc06eca49 Partial sync with Perforce state. The main purpose was to merge
changesets 2499 and 2614, which change (and improve), handling of includes.


[SVN r18888]
2003-06-30 14:14:50 +00:00
Dave Abrahams
3c7f65f943 * builtins.c/h, modules.c/h - Added VARNAMES and DELETE_MODULE rules,
for getting the list of variable names and for clearing all rule and
  variable storage.

* compile.c - better error reporting for unknown rules; now it is a
  hard error.

* hash.c/h - added hash_free to allow removal of elements from a hash

* rule.c/h - implemented rule freeing; stopped exporting rules to the
  global module by default.

* variable.c - reclaim variable storage when disposing of variable
  hash.

* build.jam - make grammar building work under NT


[SVN r18405]
2003-05-15 20:53:16 +00:00
Dave Abrahams
eb1b5407d0 Automatically add library-path values to RUN_PATH/RUN_LD_LIBRARY_PATH
[SVN r17562]
2003-02-20 20:28:05 +00:00
Dave Abrahams
fed31d2af9 Use downcased globbing on NT/Cygwin
[SVN r17537]
2003-02-19 16:43:55 +00:00
Rene Rivera
4f0f52f443 Brought back compatability of command line specified targets to update.
Modified UPDATE builtin to: 1. clear the update list, 2. set the update list to the given targets, 3. return the previous update list.


[SVN r16764]
2003-01-05 19:11:07 +00:00
Vladimir Prus
1c8db11b60 Dependency scanning implementation.
* jam_src/builtins.c: New builtin SEARCH_FOR_TARGET.

    * jam_src/rules.c
         (bind_explicitly_located_targets): New function.
         (search_for_target): New function.

    * jam_src/make.c (make): Call 'bind_explicitly_located_targets()'
        immediately on entering.

    * jam_src/search.c (call_bind_rule): No longer 'static'.

    * new/builtin.jam (c-scanner.process): Real implementation.

    * test/dependency_test.py: Really test for dependencies.


[SVN r15646]
2002-10-02 11:56:32 +00:00
Vladimir Prus
398dd1c01f Make the BACKTRACE rule accept an optional 'levels' parameter.
[SVN r14563]
2002-07-22 17:39:42 +00:00
Vladimir Prus
d2a25c1a57 Merge from feature_branch-update_rule (state 1).
* jam_src/Jamfile, jam_src/boost-jam.spec, jam_src/patchlevel.h:
          Updated version number to 3.1.1.
      * jam_src/jam.c: Made JAM_VERSION three-element string.
      * bootstrap.jam: When JAM_VERSION is 3.1.1 or more, call UPDATE
          explicitly on all non-option element in the command line.


[SVN r14363]
2002-07-09 08:58:29 +00:00
Dave Abrahams
11a3675f95 restore FAIL_EXPECTED rule
[SVN r13745]
2002-05-08 13:52:50 +00:00
Dave Abrahams
75bf17682e Better error reporting for IMPORT
[SVN r13584]
2002-04-30 14:13:09 +00:00
Dave Abrahams
91c1a2cbd5 Replace unused FAIL_EXPECTED with RMOLD
[SVN r13406]
2002-04-09 04:01:58 +00:00
Dave Abrahams
20bc5ac6cb rolled forward GLOB and MATCH changes from perforce. Also incorporated regex cacheing to MATCH
[SVN r13386]
2002-04-06 23:36:47 +00:00
Dave Abrahams
ae97068e36 Fixed MATCH rule port
Changed regex.split to work with MATCH
Fixed build-system.jam so command-line JAMFILE specification works


[SVN r13326]
2002-04-01 02:59:53 +00:00
Dave Abrahams
0e7c3854bf Added MATCH rule
[SVN r13314]
2002-03-30 12:53:50 +00:00
Vladimir Prus
52e3ac3657 Added the 'PWD' builtin.
[SVN r13117]
2002-03-07 09:02:01 +00:00
Dave Abrahams
93f12c9a68 Merge with Perforce 2.4 state
[SVN r13111]
2002-03-06 14:13:29 +00:00