Just use relative paths (so they match up)
This commit is contained in:
parent
c50791cba1
commit
d78227a8e2
4
rubberin
4
rubberin
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue