forked from basho/rebar
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the base compiler accept target file names
The rebar_base_compiler:run/5 is an alternative to run/8, where instead of source/target dirs and file name extensions, it takes a list of tuples: [{SourceFileName, TargetFileName}], after the idea by Tuncer Ayaz in discussion with Luis Rascão and me. This is useful for situations where the target file name cannot be expressed as only a new suffix or extension. For example the gpb protocol buffer compiler can take an option to add a file name prefix as well as a suffix. As a result, the values passed around inside the internal functions in rebar_base_compiler are either source file names (eg. when the run/4 function has been called), or items, which are two-tuples {SourceFileName,TargetFileName} (when the run/7,8 or /5 functions have been called).
- Loading branch information
1 parent
135e629
commit 2e9706f
Showing
1 changed file
with
40 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters