Skip to content

Commit

Permalink
Revert "Simplify target generation by assuming file is always a subpa…
Browse files Browse the repository at this point in the history
…th of src_prefix"

This reverts commit e135737.
shinokaro committed Jun 7, 2024
1 parent e135737 commit 094b6ac
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion bin/ocran
Original file line number Diff line number Diff line change
@@ -679,7 +679,14 @@ EOF
Ocran.msg "Adding user-supplied source files"
Ocran.files.each do |file|
file = src_prefix / file
target = SRCDIR / file.relative_path_from(src_prefix)
if file.subpath?(exec_prefix)
target = file.relative_path_from(exec_prefix)
elsif file.subpath?(src_prefix)
target = SRCDIR / file.relative_path_from(src_prefix)
else
target = SRCDIR / file.basename
end

target_script ||= target

if file.directory?

0 comments on commit 094b6ac

Please sign in to comment.