mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 11:09:55 +00:00
Merge branch 'coolchevy-fix-dtl-target-path'
This commit is contained in:
commit
3a0c547089
1 changed files with 1 additions and 4 deletions
|
@ -104,11 +104,8 @@ simple_compile_wrapper(Source, Target, Compile3Fn, Config, true) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
target_file(SourceFile, SourceDir, SourceExt, TargetDir, TargetExt) ->
|
target_file(SourceFile, SourceDir, SourceExt, TargetDir, TargetExt) ->
|
||||||
%% Remove all leading components of the source dir from the file -- we want
|
|
||||||
%% to maintain the deeper structure (if any) of the source file path
|
|
||||||
BaseFile = remove_common_path(SourceFile, SourceDir),
|
BaseFile = remove_common_path(SourceFile, SourceDir),
|
||||||
filename:join([TargetDir, filename:dirname(BaseFile),
|
filename:join([TargetDir, filename:basename(BaseFile, SourceExt) ++ TargetExt]).
|
||||||
filename:basename(BaseFile, SourceExt) ++ TargetExt]).
|
|
||||||
|
|
||||||
|
|
||||||
remove_common_path(Fname, Path) ->
|
remove_common_path(Fname, Path) ->
|
||||||
|
|
Loading…
Reference in a new issue