rake 10.4.2 → 13.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CONTRIBUTING.rdoc +16 -7
- data/Gemfile +10 -0
- data/History.rdoc +2022 -287
- data/README.rdoc +40 -25
- data/Rakefile +25 -65
- data/bin/bundle +105 -0
- data/bin/console +7 -0
- data/bin/rake +20 -24
- data/bin/rdoc +29 -0
- data/bin/rubocop +29 -0
- data/bin/setup +6 -0
- data/doc/glossary.rdoc +10 -11
- data/doc/jamis.rb +1 -0
- data/doc/rake.1 +139 -124
- data/doc/rakefile.rdoc +2 -33
- data/exe/rake +27 -0
- data/lib/rake.rb +35 -43
- data/lib/rake/application.rb +125 -91
- data/lib/rake/backtrace.rb +3 -2
- data/lib/rake/clean.rb +8 -6
- data/lib/rake/cloneable.rb +1 -0
- data/lib/rake/cpu_counter.rb +10 -28
- data/lib/rake/default_loader.rb +1 -0
- data/lib/rake/dsl_definition.rb +6 -12
- data/lib/rake/early_time.rb +1 -0
- data/lib/rake/ext/core.rb +1 -0
- data/lib/rake/ext/string.rb +24 -21
- data/lib/rake/file_creation_task.rb +4 -3
- data/lib/rake/file_list.rb +35 -28
- data/lib/rake/file_task.rb +12 -4
- data/lib/rake/file_utils.rb +38 -32
- data/lib/rake/file_utils_ext.rb +8 -18
- data/lib/rake/invocation_chain.rb +1 -0
- data/lib/rake/invocation_exception_mixin.rb +1 -0
- data/lib/rake/late_time.rb +2 -1
- data/lib/rake/linked_list.rb +24 -15
- data/lib/rake/loaders/makefile.rb +23 -9
- data/lib/rake/multi_task.rb +2 -1
- data/lib/rake/name_space.rb +1 -1
- data/lib/rake/packagetask.rb +40 -17
- data/lib/rake/phony.rb +2 -1
- data/lib/rake/private_reader.rb +1 -0
- data/lib/rake/promise.rb +13 -12
- data/lib/rake/pseudo_status.rb +1 -0
- data/lib/rake/rake_module.rb +30 -1
- data/lib/rake/rake_test_loader.rb +18 -13
- data/lib/rake/rule_recursion_overflow_error.rb +2 -2
- data/lib/rake/scope.rb +3 -2
- data/lib/rake/task.rb +82 -31
- data/lib/rake/task_argument_error.rb +1 -0
- data/lib/rake/task_arguments.rb +15 -4
- data/lib/rake/task_manager.rb +54 -33
- data/lib/rake/tasklib.rb +2 -14
- data/lib/rake/testtask.rb +40 -63
- data/lib/rake/thread_history_display.rb +4 -3
- data/lib/rake/thread_pool.rb +16 -17
- data/lib/rake/trace_output.rb +2 -1
- data/lib/rake/version.rb +4 -1
- data/lib/rake/win32.rb +10 -15
- data/rake.gemspec +43 -0
- metadata +33 -270
- data/.autotest +0 -7
- data/.gemtest +0 -0
- data/.rubocop.yml +0 -27
- data/.togglerc +0 -7
- data/Manifest.txt +0 -166
- data/doc/release_notes/rake-0.4.14.rdoc +0 -23
- data/doc/release_notes/rake-0.4.15.rdoc +0 -35
- data/doc/release_notes/rake-0.5.0.rdoc +0 -53
- data/doc/release_notes/rake-0.5.3.rdoc +0 -78
- data/doc/release_notes/rake-0.5.4.rdoc +0 -46
- data/doc/release_notes/rake-0.6.0.rdoc +0 -141
- data/doc/release_notes/rake-0.7.0.rdoc +0 -119
- data/doc/release_notes/rake-0.7.1.rdoc +0 -59
- data/doc/release_notes/rake-0.7.2.rdoc +0 -121
- data/doc/release_notes/rake-0.7.3.rdoc +0 -47
- data/doc/release_notes/rake-0.8.0.rdoc +0 -114
- data/doc/release_notes/rake-0.8.2.rdoc +0 -165
- data/doc/release_notes/rake-0.8.3.rdoc +0 -112
- data/doc/release_notes/rake-0.8.4.rdoc +0 -147
- data/doc/release_notes/rake-0.8.5.rdoc +0 -53
- data/doc/release_notes/rake-0.8.6.rdoc +0 -37
- data/doc/release_notes/rake-0.8.7.rdoc +0 -55
- data/doc/release_notes/rake-0.9.0.rdoc +0 -112
- data/doc/release_notes/rake-0.9.1.rdoc +0 -52
- data/doc/release_notes/rake-0.9.2.2.rdoc +0 -55
- data/doc/release_notes/rake-0.9.2.rdoc +0 -49
- data/doc/release_notes/rake-0.9.3.rdoc +0 -102
- data/doc/release_notes/rake-0.9.4.rdoc +0 -60
- data/doc/release_notes/rake-0.9.5.rdoc +0 -55
- data/doc/release_notes/rake-0.9.6.rdoc +0 -64
- data/doc/release_notes/rake-10.0.0.rdoc +0 -178
- data/doc/release_notes/rake-10.0.1.rdoc +0 -58
- data/doc/release_notes/rake-10.0.2.rdoc +0 -53
- data/doc/release_notes/rake-10.0.3.rdoc +0 -191
- data/doc/release_notes/rake-10.1.0.rdoc +0 -61
- data/lib/rake/alt_system.rb +0 -110
- data/lib/rake/contrib/.document +0 -1
- data/lib/rake/contrib/compositepublisher.rb +0 -21
- data/lib/rake/contrib/ftptools.rb +0 -137
- data/lib/rake/contrib/publisher.rb +0 -81
- data/lib/rake/contrib/rubyforgepublisher.rb +0 -18
- data/lib/rake/contrib/sshpublisher.rb +0 -61
- data/lib/rake/contrib/sys.rb +0 -4
- data/lib/rake/ext/module.rb +0 -2
- data/lib/rake/ext/pathname.rb +0 -25
- data/lib/rake/ext/time.rb +0 -16
- data/lib/rake/gempackagetask.rb +0 -4
- data/lib/rake/pathmap.rb +0 -3
- data/lib/rake/rdoctask.rb +0 -4
- data/lib/rake/ruby182_test_unit_fix.rb +0 -29
- data/lib/rake/runtest.rb +0 -27
- data/rakelib/publish.rake +0 -20
- data/rakelib/test_times.rake +0 -25
- data/test/file_creation.rb +0 -34
- data/test/helper.rb +0 -130
- data/test/support/rakefile_definitions.rb +0 -478
- data/test/support/ruby_runner.rb +0 -34
- data/test/test_private_reader.rb +0 -42
- data/test/test_rake.rb +0 -40
- data/test/test_rake_application.rb +0 -643
- data/test/test_rake_application_options.rb +0 -466
- data/test/test_rake_backtrace.rb +0 -119
- data/test/test_rake_clean.rb +0 -61
- data/test/test_rake_cpu_counter.rb +0 -68
- data/test/test_rake_definitions.rb +0 -84
- data/test/test_rake_directory_task.rb +0 -76
- data/test/test_rake_dsl.rb +0 -40
- data/test/test_rake_early_time.rb +0 -31
- data/test/test_rake_extension.rb +0 -59
- data/test/test_rake_file_creation_task.rb +0 -56
- data/test/test_rake_file_list.rb +0 -655
- data/test/test_rake_file_list_path_map.rb +0 -8
- data/test/test_rake_file_task.rb +0 -197
- data/test/test_rake_file_utils.rb +0 -309
- data/test/test_rake_ftp_file.rb +0 -74
- data/test/test_rake_functional.rb +0 -482
- data/test/test_rake_invocation_chain.rb +0 -64
- data/test/test_rake_late_time.rb +0 -18
- data/test/test_rake_linked_list.rb +0 -84
- data/test/test_rake_makefile_loader.rb +0 -46
- data/test/test_rake_multi_task.rb +0 -64
- data/test/test_rake_name_space.rb +0 -57
- data/test/test_rake_package_task.rb +0 -79
- data/test/test_rake_path_map.rb +0 -168
- data/test/test_rake_path_map_explode.rb +0 -34
- data/test/test_rake_path_map_partial.rb +0 -18
- data/test/test_rake_pathname_extensions.rb +0 -15
- data/test/test_rake_pseudo_status.rb +0 -21
- data/test/test_rake_rake_test_loader.rb +0 -20
- data/test/test_rake_reduce_compat.rb +0 -26
- data/test/test_rake_require.rb +0 -40
- data/test/test_rake_rules.rb +0 -388
- data/test/test_rake_scope.rb +0 -44
- data/test/test_rake_task.rb +0 -393
- data/test/test_rake_task_argument_parsing.rb +0 -119
- data/test/test_rake_task_arguments.rb +0 -127
- data/test/test_rake_task_lib.rb +0 -9
- data/test/test_rake_task_manager.rb +0 -178
- data/test/test_rake_task_manager_argument_resolution.rb +0 -19
- data/test/test_rake_task_with_arguments.rb +0 -172
- data/test/test_rake_test_task.rb +0 -146
- data/test/test_rake_thread_pool.rb +0 -145
- data/test/test_rake_top_level_functions.rb +0 -71
- data/test/test_rake_win32.rb +0 -72
- data/test/test_thread_history_display.rb +0 -101
- data/test/test_trace_output.rb +0 -52
data/bin/setup
ADDED
data/doc/glossary.rdoc
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
= Glossary
|
|
2
2
|
|
|
3
3
|
action ::
|
|
4
|
-
Code to be executed in order to perform a task. Actions in a
|
|
5
|
-
specified in a code block (
|
|
4
|
+
Code to be executed in order to perform a task. Actions in a Rakefile are
|
|
5
|
+
specified in a code block. (Usually delimited by +do+/+end+ pairs.)
|
|
6
6
|
|
|
7
7
|
execute ::
|
|
8
|
-
When a task is executed, all of its actions are performed
|
|
9
|
-
were defined. Note that unlike <tt>invoke</tt>, <tt>execute</tt> always
|
|
8
|
+
When a task is executed, all of its actions are performed in the order they
|
|
9
|
+
were defined. Note that, unlike <tt>invoke</tt>, <tt>execute</tt> always
|
|
10
10
|
executes the actions (without invoking or executing the prerequisites).
|
|
11
11
|
|
|
12
12
|
file task (Rake::FileTask) ::
|
|
@@ -22,15 +22,15 @@ file task (Rake::FileTask) ::
|
|
|
22
22
|
|
|
23
23
|
invoke ::
|
|
24
24
|
When a task is invoked, first we check to see if it has been invoked before.
|
|
25
|
-
If it has been, then nothing else is done. If this is the first time
|
|
25
|
+
If it has been, then nothing else is done. If this is the first time it has
|
|
26
26
|
been invoked, then we invoke each of its prerequisites. Finally, we check
|
|
27
27
|
to see if we need to execute the actions of this task by calling
|
|
28
|
-
Rake::Task#needed?.
|
|
28
|
+
Rake::Task#needed?. If the task is needed, we execute its actions.
|
|
29
29
|
|
|
30
|
-
NOTE: Prerequisites are invoked even if the task is not needed.
|
|
30
|
+
NOTE: Prerequisites are still invoked even if the task is not needed.
|
|
31
31
|
|
|
32
32
|
prerequisites ::
|
|
33
|
-
Every task has a
|
|
33
|
+
Every task has a (possibly empty) set of prerequisites. A prerequisite P to
|
|
34
34
|
Task T is itself a task that must be invoked before Task T.
|
|
35
35
|
|
|
36
36
|
rule ::
|
|
@@ -38,6 +38,5 @@ rule ::
|
|
|
38
38
|
defined. Rules generally synthesize file tasks.
|
|
39
39
|
|
|
40
40
|
task (Rake::Task) ::
|
|
41
|
-
|
|
42
|
-
and a list of actions to be performed.
|
|
43
|
-
|
|
41
|
+
The basic unit of work in a Rakefile. A task has a name, a set of
|
|
42
|
+
prerequisites, and a list of actions to be performed.
|
data/doc/jamis.rb
CHANGED
data/doc/rake.1
CHANGED
|
@@ -1,141 +1,156 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
.
|
|
21
|
-
\fBrake\fR [\fI\-f rakefile\fR] {\fIOPTIONS\fR} \fITARGETS...\fR
|
|
22
|
-
.br
|
|
23
|
-
.SH DESCRIPTION
|
|
24
|
-
.B rake
|
|
25
|
-
is a make-like build utility for Ruby. Tasks and dependencies are specified in
|
|
26
|
-
standard Ruby syntax.
|
|
27
|
-
.SH OPTIONS
|
|
28
|
-
.TP
|
|
29
|
-
\fB\-m\fR, \fB\-\-multitask\fR
|
|
1
|
+
.Dd June 12, 2016
|
|
2
|
+
.Dt RAKE 1
|
|
3
|
+
.Os rake 11.2.2
|
|
4
|
+
.Sh NAME
|
|
5
|
+
.Nm rake
|
|
6
|
+
.Nd make-like build utility for Ruby
|
|
7
|
+
.Sh SYNOPSIS
|
|
8
|
+
.Nm
|
|
9
|
+
.Op Fl f Ar rakefile
|
|
10
|
+
.Op Ar options
|
|
11
|
+
.Ar targets ...
|
|
12
|
+
.Sh DESCRIPTION
|
|
13
|
+
.Nm
|
|
14
|
+
is a
|
|
15
|
+
.Xr make 1 Ns -like
|
|
16
|
+
build utility for Ruby.
|
|
17
|
+
Tasks and dependencies are specified in standard Ruby syntax.
|
|
18
|
+
.Sh OPTIONS
|
|
19
|
+
.Bl -tag -width Ds
|
|
20
|
+
.It Fl m , Fl -multitask
|
|
30
21
|
Treat all tasks as multitasks.
|
|
31
|
-
.
|
|
32
|
-
\fB\-B\fR, \fB\-\-build\-all\fR
|
|
22
|
+
.It Fl B , Fl -build-all
|
|
33
23
|
Build all prerequisites, including those which are up\-to\-date.
|
|
34
|
-
|
|
35
|
-
.TP
|
|
36
|
-
\fB\-j\fR, \fB\-\-jobs\fR [\fINUMBER\fR]
|
|
24
|
+
.It Fl j , Fl -jobs Ar num_jobs
|
|
37
25
|
Specifies the maximum number of tasks to execute in parallel (default is number of CPU cores + 4).
|
|
38
|
-
|
|
39
|
-
.
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
Include
|
|
43
|
-
.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
.
|
|
52
|
-
|
|
26
|
+
.El
|
|
27
|
+
.Ss Modules
|
|
28
|
+
.Bl -tag -width Ds
|
|
29
|
+
.It Fl I , Fl -libdir Ar libdir
|
|
30
|
+
Include
|
|
31
|
+
.Ar libdir
|
|
32
|
+
in the search path for required modules.
|
|
33
|
+
.It Fl r , Fl -require Ar module
|
|
34
|
+
Require
|
|
35
|
+
.Ar module
|
|
36
|
+
before executing
|
|
37
|
+
.Pa rakefile .
|
|
38
|
+
.El
|
|
39
|
+
.Ss Rakefile location
|
|
40
|
+
.Bl -tag -width Ds
|
|
41
|
+
.It Fl f , Fl -rakefile Ar filename
|
|
42
|
+
Use
|
|
43
|
+
.Ar filename
|
|
44
|
+
as the rakefile to search for.
|
|
45
|
+
.It Fl N , Fl -no-search , Fl -nosearch
|
|
53
46
|
Do not search parent directories for the Rakefile.
|
|
54
|
-
.
|
|
55
|
-
\fB\-G\fR, \fB\-\-no\-system\fR, \fB\-\-nosystem\fR
|
|
47
|
+
.It Fl G , Fl -no-system , Fl -nosystem
|
|
56
48
|
Use standard project Rakefile search paths, ignore system wide rakefiles.
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
.
|
|
67
|
-
.
|
|
68
|
-
|
|
69
|
-
Enable full backtrace.
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
.
|
|
77
|
-
|
|
49
|
+
.It Fl R , Fl -rakelib Ar rakelibdir , Fl -rakelibdir Ar rakelibdir
|
|
50
|
+
Auto-import any .rake files in
|
|
51
|
+
.Ar rakelibdir
|
|
52
|
+
(default is
|
|
53
|
+
.Sq rakelib )
|
|
54
|
+
.It Fl g , Fl -system
|
|
55
|
+
Use system-wide (global) rakefiles (usually
|
|
56
|
+
.Pa ~/.rake/*.rake ) .
|
|
57
|
+
.El
|
|
58
|
+
.Ss Debugging
|
|
59
|
+
.Bl -tag -width Ds
|
|
60
|
+
.It Fl -backtrace Ns = Ns Ar out
|
|
61
|
+
Enable full backtrace.
|
|
62
|
+
.Ar out
|
|
63
|
+
can be
|
|
64
|
+
.Dv stderr
|
|
65
|
+
(default) or
|
|
66
|
+
.Dv stdout .
|
|
67
|
+
.It Fl t , Fl -trace Ns = Ns Ar out
|
|
68
|
+
Turn on invoke/execute tracing, enable full backtrace.
|
|
69
|
+
.Ar out
|
|
70
|
+
can be
|
|
71
|
+
.Dv stderr
|
|
72
|
+
(default) or
|
|
73
|
+
.Dv stdout .
|
|
74
|
+
.It Fl -suppress-backtrace Ar pattern
|
|
75
|
+
Suppress backtrace lines matching regexp
|
|
76
|
+
.Ar pattern .
|
|
77
|
+
Ignored if
|
|
78
|
+
.Fl -trace
|
|
79
|
+
is on.
|
|
80
|
+
.It Fl -rules
|
|
78
81
|
Trace the rules resolution.
|
|
79
|
-
|
|
80
|
-
.TP
|
|
81
|
-
\fB\-n\fR, \fB\-\-dry\-run\fR
|
|
82
|
+
.It Fl n , Fl -dry-run
|
|
82
83
|
Do a dry run without executing actions.
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
.
|
|
87
|
-
|
|
88
|
-
Describe the tasks (matching optional
|
|
89
|
-
.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
84
|
+
.It Fl T , Fl -tasks Op Ar pattern
|
|
85
|
+
Display the tasks (matching optional
|
|
86
|
+
.Ar pattern )
|
|
87
|
+
with descriptions, then exit.
|
|
88
|
+
.It Fl D , Fl -describe Op Ar pattern
|
|
89
|
+
Describe the tasks (matching optional
|
|
90
|
+
.Ar pattern ) ,
|
|
91
|
+
then exit.
|
|
92
|
+
.It Fl W , Fl -where Op Ar pattern
|
|
93
|
+
Describe the tasks (matching optional
|
|
94
|
+
.Ar pattern ) ,
|
|
95
|
+
then exit.
|
|
96
|
+
.It Fl P , Fl -prereqs
|
|
94
97
|
Display the tasks and dependencies, then exit.
|
|
95
|
-
|
|
96
|
-
.TP
|
|
97
|
-
\fB\-e\fR, \fB\-\-execute\fR \fICODE\fR
|
|
98
|
+
.It Fl e , Fl -execute Ar code
|
|
98
99
|
Execute some Ruby code and exit.
|
|
99
|
-
.
|
|
100
|
-
\fB\-p\fR, \fB\-\-execute\-print\fR \fICODE\fR
|
|
100
|
+
.It Fl p , Fl -execute-print Ar code
|
|
101
101
|
Execute some Ruby code, print the result, then exit.
|
|
102
|
-
.
|
|
103
|
-
\fB\-E\fR, \fB\-\-execute\-continue\fR \fICODE\fR
|
|
102
|
+
.It Fl E , Fl -execute-continue Ar code
|
|
104
103
|
Execute some Ruby code, then continue with normal task processing.
|
|
105
|
-
|
|
106
|
-
.
|
|
107
|
-
.
|
|
108
|
-
|
|
104
|
+
.El
|
|
105
|
+
.Ss Information
|
|
106
|
+
.Bl -tag -width Ds
|
|
107
|
+
.It Fl v , Fl -verbose
|
|
109
108
|
Log message to standard output.
|
|
110
|
-
.
|
|
111
|
-
\fB\-q\fR, \fB\-\-quiet\fR
|
|
109
|
+
.It Fl q , Fl -quiet
|
|
112
110
|
Do not log messages to standard output.
|
|
113
|
-
.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
111
|
+
.It Fl s , Fl -silent
|
|
112
|
+
Like
|
|
113
|
+
.Fl -quiet ,
|
|
114
|
+
but also suppresses the
|
|
115
|
+
.Sq in directory
|
|
116
|
+
announcement.
|
|
117
|
+
.It Fl X , Fl -no-deprecation-warnings
|
|
118
118
|
Disable the deprecation warnings.
|
|
119
|
-
.
|
|
120
|
-
\fB\-\-comments\fR
|
|
119
|
+
.It Fl -comments
|
|
121
120
|
Show commented tasks only
|
|
122
|
-
.
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
.
|
|
129
|
-
|
|
121
|
+
.It Fl A , Fl -all
|
|
122
|
+
Show all tasks, even uncommented ones (in combination with
|
|
123
|
+
.Fl T
|
|
124
|
+
or
|
|
125
|
+
.Fl D )
|
|
126
|
+
.It Fl -job-stats Op Ar level
|
|
127
|
+
Display job statistics.
|
|
128
|
+
If
|
|
129
|
+
.Ar level
|
|
130
|
+
is
|
|
131
|
+
.Sq history ,
|
|
132
|
+
displays a complete job list.
|
|
133
|
+
.It Fl V , Fl -version
|
|
130
134
|
Display the program version.
|
|
131
|
-
.
|
|
132
|
-
\fB\-h\fR, \fB\-H\fR, \fB\-\-help\fR
|
|
135
|
+
.It Fl h , Fl H , Fl -help
|
|
133
136
|
Display a help message.
|
|
134
|
-
|
|
135
|
-
.
|
|
136
|
-
The complete documentation for
|
|
137
|
-
.
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
.El
|
|
138
|
+
.Sh SEE ALSO
|
|
139
|
+
The complete documentation for
|
|
140
|
+
.Nm rake
|
|
141
|
+
has been installed at
|
|
142
|
+
.Pa /usr/share/doc/rake-doc/html/index.html .
|
|
143
|
+
It is also available online at
|
|
144
|
+
.Lk https://ruby.github.io/rake .
|
|
145
|
+
.Sh AUTHORS
|
|
146
|
+
.An -nosplit
|
|
147
|
+
.Nm
|
|
148
|
+
was written by
|
|
149
|
+
.An Jim Weirich Aq Mt jim@weirichhouse.org .
|
|
150
|
+
.Pp
|
|
151
|
+
This manual was created by
|
|
152
|
+
.An Caitlin Matos Aq Mt caitlin.matos@zoho.com
|
|
153
|
+
for the Debian project (but may be used by others).
|
|
154
|
+
It was inspired by the manual by
|
|
155
|
+
.An Jani Monoses Aq Mt jani@iv.ro
|
|
156
|
+
for the Ubuntu project.
|
data/doc/rakefile.rdoc
CHANGED
|
@@ -197,35 +197,6 @@ argument string should be quoted. Something like this:
|
|
|
197
197
|
(Quoting rules vary between operating systems and shells, so make sure
|
|
198
198
|
you consult the proper docs for your OS/shell).
|
|
199
199
|
|
|
200
|
-
=== Task Arguments and the Environment
|
|
201
|
-
|
|
202
|
-
Task argument values can also be picked up from the environment. For
|
|
203
|
-
example, if the "release" task expected a parameter named
|
|
204
|
-
"release_version", then either
|
|
205
|
-
|
|
206
|
-
rake release[0.8.2]
|
|
207
|
-
|
|
208
|
-
or
|
|
209
|
-
|
|
210
|
-
RELEASE_VERSION=0.8.2 rake release
|
|
211
|
-
|
|
212
|
-
or, alternatively
|
|
213
|
-
|
|
214
|
-
rake release RELEASE_VERSION=0.8.2
|
|
215
|
-
|
|
216
|
-
will work. Environment variable names must either match the task
|
|
217
|
-
parameter exactly, or match an all-uppercase version of the task
|
|
218
|
-
parameter.
|
|
219
|
-
|
|
220
|
-
*NOTE:* A variable declared within a rake command will
|
|
221
|
-
not persist in the environment:
|
|
222
|
-
|
|
223
|
-
$ export VALUE=old
|
|
224
|
-
$ rake print_value VALUE=new
|
|
225
|
-
new
|
|
226
|
-
$ rake print_value
|
|
227
|
-
old
|
|
228
|
-
|
|
229
200
|
=== Tasks that Expect Parameters
|
|
230
201
|
|
|
231
202
|
Parameters are only given to tasks that are setup to expect them. In
|
|
@@ -252,9 +223,7 @@ behaviour can now accept a second parameter:
|
|
|
252
223
|
The first argument of the block "t" is always bound to the current
|
|
253
224
|
task object. The second argument "args" is an open-struct like object
|
|
254
225
|
that allows access to the task arguments. Extra command line
|
|
255
|
-
arguments to a task are ignored.
|
|
256
|
-
picked up from matching environment variables. If there are no
|
|
257
|
-
matching environment variables, they are given the nil value.
|
|
226
|
+
arguments to a task are ignored.
|
|
258
227
|
|
|
259
228
|
If you wish to specify default values for the arguments, you can use
|
|
260
229
|
the with_defaults method in the task body. Here is the above example
|
|
@@ -441,7 +410,7 @@ display a list of tasks that have a description. If you use +desc+ to
|
|
|
441
410
|
describe your major tasks, you have a semi-automatic way of generating
|
|
442
411
|
a summary of your Rake file.
|
|
443
412
|
|
|
444
|
-
|
|
413
|
+
$ rake -T
|
|
445
414
|
(in /home/.../rake)
|
|
446
415
|
rake clean # Remove any temporary products.
|
|
447
416
|
rake clobber # Remove any generated file.
|
data/exe/rake
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
#--
|
|
4
|
+
# Copyright (c) 2003, 2004, 2005, 2006, 2007 Jim Weirich
|
|
5
|
+
#
|
|
6
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
# of this software and associated documentation files (the "Software"), to
|
|
8
|
+
# deal in the Software without restriction, including without limitation the
|
|
9
|
+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
10
|
+
# sell copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
# furnished to do so, subject to the following conditions:
|
|
12
|
+
#
|
|
13
|
+
# The above copyright notice and this permission notice shall be included in
|
|
14
|
+
# all copies or substantial portions of the Software.
|
|
15
|
+
#
|
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
21
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
22
|
+
# IN THE SOFTWARE.
|
|
23
|
+
#++
|
|
24
|
+
|
|
25
|
+
require "rake"
|
|
26
|
+
|
|
27
|
+
Rake.application.run
|
data/lib/rake.rb
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
1
2
|
#--
|
|
2
3
|
# Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com)
|
|
3
4
|
#
|
|
@@ -20,54 +21,45 @@
|
|
|
20
21
|
# IN THE SOFTWARE.
|
|
21
22
|
#++
|
|
22
23
|
|
|
23
|
-
module Rake
|
|
24
|
-
VERSION = '10.4.2'
|
|
25
|
-
end
|
|
24
|
+
module Rake; end
|
|
26
25
|
|
|
27
|
-
require
|
|
26
|
+
require "rake/version"
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
require
|
|
35
|
-
require 'fileutils'
|
|
36
|
-
require 'singleton'
|
|
37
|
-
require 'monitor'
|
|
38
|
-
require 'optparse'
|
|
39
|
-
require 'ostruct'
|
|
28
|
+
require "rbconfig"
|
|
29
|
+
require "fileutils"
|
|
30
|
+
require "singleton"
|
|
31
|
+
require "monitor"
|
|
32
|
+
require "optparse"
|
|
33
|
+
require "ostruct"
|
|
40
34
|
|
|
41
|
-
require
|
|
42
|
-
require 'rake/ext/string'
|
|
43
|
-
require 'rake/ext/time'
|
|
35
|
+
require "rake/ext/string"
|
|
44
36
|
|
|
45
|
-
require
|
|
37
|
+
require "rake/win32"
|
|
46
38
|
|
|
47
|
-
require
|
|
48
|
-
require
|
|
49
|
-
require
|
|
50
|
-
require
|
|
51
|
-
require
|
|
52
|
-
require
|
|
53
|
-
require
|
|
54
|
-
require
|
|
55
|
-
require
|
|
56
|
-
require
|
|
57
|
-
require
|
|
58
|
-
require
|
|
59
|
-
require
|
|
60
|
-
require
|
|
61
|
-
require
|
|
62
|
-
require
|
|
63
|
-
require
|
|
64
|
-
require
|
|
65
|
-
require
|
|
66
|
-
require
|
|
67
|
-
require
|
|
68
|
-
require
|
|
69
|
-
require
|
|
70
|
-
require
|
|
39
|
+
require "rake/linked_list"
|
|
40
|
+
require "rake/cpu_counter"
|
|
41
|
+
require "rake/scope"
|
|
42
|
+
require "rake/task_argument_error"
|
|
43
|
+
require "rake/rule_recursion_overflow_error"
|
|
44
|
+
require "rake/rake_module"
|
|
45
|
+
require "rake/trace_output"
|
|
46
|
+
require "rake/pseudo_status"
|
|
47
|
+
require "rake/task_arguments"
|
|
48
|
+
require "rake/invocation_chain"
|
|
49
|
+
require "rake/task"
|
|
50
|
+
require "rake/file_task"
|
|
51
|
+
require "rake/file_creation_task"
|
|
52
|
+
require "rake/multi_task"
|
|
53
|
+
require "rake/dsl_definition"
|
|
54
|
+
require "rake/file_utils_ext"
|
|
55
|
+
require "rake/file_list"
|
|
56
|
+
require "rake/default_loader"
|
|
57
|
+
require "rake/early_time"
|
|
58
|
+
require "rake/late_time"
|
|
59
|
+
require "rake/name_space"
|
|
60
|
+
require "rake/task_manager"
|
|
61
|
+
require "rake/application"
|
|
62
|
+
require "rake/backtrace"
|
|
71
63
|
|
|
72
64
|
$trace = false
|
|
73
65
|
|