From: William Morgan Date: Sun, 26 Apr 2009 14:28:16 +0000 (-0400) Subject: make sup-files.rb print out all files when executed X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=733defd3698de5ac416866499b6e7f907604dea8;p=sup make sup-files.rb print out all files when executed This makes it easy to do something like: vi `ruby ./sup-files.rb` to edit all files. --- diff --git a/sup-files.rb b/sup-files.rb index 71562f5..6acf7c0 100644 --- a/sup-files.rb +++ b/sup-files.rb @@ -5,3 +5,7 @@ SUP_FILES = SUP_EXTRA_FILES + SUP_EXECUTABLES.map { |f| "bin/#{f}" } + SUP_LIB_DIRS.map { |d| Dir["#{d}/*.rb"] }.flatten + +if $0 == __FILE__ # if executed from commandline + puts SUP_FILES +end