Just use relative paths (so they match up)

This commit is contained in:
Paul van Tilburg 2021-12-09 17:45:09 +01:00
parent c50791cba1
commit d78227a8e2
Signed by: paul
GPG Key ID: C6DE073EDA9EEC4D
1 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ rescue SystemCallError => e
exit 2
end
# Find the dependancies of the input file using rubber-info and
# Find the dependencies of the input file using rubber-info and
# do an initial run.
files = `rubber-info --deps #{infile}`.chomp.split
compile(infile, mode)
@ -188,7 +188,7 @@ end
# Add input file with dependancies to the watch list and start event loop.
notifier = INotify::Notifier.new
dirs = files.map { |file| Pathname.new(file).dirname.realpath }.uniq
dirs = files.map { |file| Pathname.new(file).dirname }.uniq
dirs.each do |dir|
# Set up a watch per directory
notifier.watch(dir.to_s, :close_write) do |ev|