Commit Graph

40 Commits

Author SHA1 Message Date
John Bampton 233366a00c Fix shebang by removing whitespace 2021-06-17 10:26:38 +10:00
Yukihiro "Matz" Matsumoto 436765eb94 Revert "Remove long-time deprecated minirake."
`minirake` was still used in many occasions.
This reverts commit 3847c7eb64.
2020-11-02 15:14:36 +09:00
Yukihiro "Matz" Matsumoto 3847c7eb64 Remove long-time deprecated minirake. 2020-10-29 11:49:05 +09:00
KOBAYASHI Shuji 66349bcef1 Use exec instead of system in minirake for exit status
#### Before this patch:

  ```console
  $ ./minirake --foo; echo $?
  invalid option: --foo
  0
  ```

#### After this patch:

  ```console
  $ ./minirake --foo; echo $?
  invalid option: --foo
  1
  ```
2019-12-21 23:44:33 +09:00
Yukihiro "Matz" Matsumoto 2fe78a0c7c Add emulating minirake that calls real rake. 2019-12-21 22:11:08 +09:00
Yukihiro "Matz" Matsumoto de17f63b45 Abandon minirake. Use rake for compilation; fix #4884 2019-12-21 22:11:08 +09:00
KOBAYASHI Shuji 7e42b6ad3f Improve MiniRake rule enhancement for Rake compatibility
Support pathmap notation, recursive dependencies search, and so on.
2019-08-07 21:50:22 +09:00
Takeshi Watanabe 5b5e54d38e Fix $rake_root_fiber checking.
https://github.com/mruby/mruby/pull/4101#pullrequestreview-187752352
2018-12-25 14:37:32 +09:00
take-cheeze 901dccb2df Avoid root fiber initialization for CRuby workaround.
closes #4085.
2018-09-04 16:18:01 +09:00
take-cheeze e6357f3baa Fix indent. 2018-09-04 16:18:01 +09:00
Kazuhiro Sera b03f1f78e3 Fix misspelling words in comments 2018-08-11 00:28:32 +09:00
take-cheeze 48ba7c7bb0 Increase sleep duration exponentially instead of Thread.pass. 2018-06-22 11:41:12 +09:00
Yukihiro "Matz" Matsumoto 3671404391 Merge pull request #4053 from take-cheeze/use_transfer
Use Fiber#transfer instead in minirake.
2018-06-22 10:26:37 +09:00
take-cheeze 61e8f831dd Use Thread.pass instead of sleeping. 2018-06-22 09:29:59 +09:00
Yukihiro "Matz" Matsumoto 36e1796e41 Merge branch 'master' into use_transfer 2018-06-22 07:23:50 +09:00
Yukihiro "Matz" Matsumoto 640fca3276 Merge pull request #4056 from take-cheeze/fix_rake_jobs
Fix job waiter of minirake.
2018-06-22 07:18:01 +09:00
take-cheeze 7c246cb9db Fix job waiter. 2018-06-21 12:45:55 +09:00
take-cheeze c90dbd12ef Show minirake backtrace in verbose mode. 2018-06-21 11:29:50 +09:00
take-cheeze 6f35b07fab Use Fiber#transfer instead in minirake. 2018-06-21 11:26:55 +09:00
take-cheeze c3ac33d9cd Make minirake parallel. 2018-06-20 20:51:24 +09:00
ksss f99e100187 MiniRake::Task#timestamp should use Time.now only 2017-03-17 12:41:06 +09:00
ksss cd8284fe0b Fix build error when trace mode
Rakefile

```
file "a.txt" do
  system "echo hello > a.txt"
end

file "b.txt" => "a.txt" do
  system "cp a.txt b.txt"
end

task :default => "b.txt"
```

```
$ touch b.txt
$ ruby minirake --trace
Invoke default (already=[], needed=[true])
rake aborted!
No such file or directory @ rb_file_s_stat - a.txt
minirake:241:in `stat'
minirake:241:in `timestamp'
minirake:233:in `block in needed?'
minirake:233:in `collect'
minirake:233:in `needed?'
minirake:91:in `invoke'
minirake:95:in `block in invoke'
minirake:95:in `each'
minirake:95:in `invoke'
minirake:467:in `block in run'
minirake:466:in `each'
minirake:466:in `run'
minirake:484:in `<main>'
```
2017-02-10 13:15:49 +09:00
Julian Aron Prenner edf7729d89 Correctly handle relative paths 2015-01-07 09:31:30 +01:00
Julian Aron Prenner 432afa2c42 Properly implement directory tasks 2015-01-06 21:23:19 +01:00
Mitchell Blank Jr 688602eb81 Fix incorrect info in minirake's help message -- "-q" is the default, not "-v" 2014-05-14 14:15:13 -07:00
take_cheeze d54c250839 Add -C (--directory) option to minirake. 2014-03-30 09:23:14 +09:00
h2so5 3fb5654510 Rename --pull_gems to --pull-gems 2013-07-26 18:08:38 +09:00
kyab 8eab806da8 Add --pull_gems option to minirake 2013-07-04 22:09:05 +09:00
Nihad Abbasov 9dd539bb15 remove unused variables 2013-05-09 17:05:59 +05:00
h2so5 713615e948 Set ENV before loading Rakefile in minirake 2013-04-24 12:21:27 +09:00
nkshigeru 695920f515 fix access denied error at incremental build 2013-02-21 16:50:39 +09:00
Ravil Bayramgalin c7c435cf23 Extend MiniRake::DSL module to prevent inheritance pollution
```include MiniRake::DSL``` on toplevel will pollute ancestor tree of every object.

```extend MiniRake::DSL``` will add those methods only to ```main``` object.

Rake does the same: https://github.com/jimweirich/rake/blob/master/lib/rake/dsl_definition.rb#L153
2013-02-12 20:07:46 +04:00
Daniel Bovensiepen 56928e9fee make minirake respect verbose and set verbose to false by default 2013-01-21 15:57:45 +08:00
Yuichiro MASUI 7c469c0b9d Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3

You can see building configuration in build_config.rb
2013-01-03 02:24:15 +09:00
Yuichiro MASUI dee0b2283c Add MRUBY_CFLAGS / MRUBY_LDFLAGS to mrbgems 2012-12-22 01:38:06 +09:00
mattn bb7f0fdc90 add 'default' task if not specified. 2012-12-20 16:14:42 +09:00
Akira Yumiyama aab75e1137 minirake exit status not 0, when build failed. 2012-12-18 19:56:25 +09:00
Selman ULUG 137ec8de05 fix (-T, --tasks) show tasks 2012-12-17 11:48:21 +02:00
Yuichiro MASUI 8f9105d21a Moved some building script from GNU make to Ruby script
Added minirake what's Rake subset
2012-12-17 02:19:46 +09:00
Yuichiro MASUI 06d242ae43 Moved some building script from GNU make to Ruby script
Added minirake what's Rake subset
2012-12-16 01:56:03 +09:00