brew-test-bot: move html and css into subdirectory

Also updates the bash-completion to ignore subdirectories, rather than
specific filename patterns.
This commit is contained in:
Misty De Meo 2012-07-18 08:25:07 -05:00
parent 615c15937e
commit 6542b22677
5 changed files with 3 additions and 3 deletions

View File

@ -375,9 +375,9 @@ _brew ()
done done
if [[ $i -eq $COMP_CWORD ]]; then if [[ $i -eq $COMP_CWORD ]]; then
local ext=$(\ls $(brew --repository)/Library/Contributions/cmds \ local ext=$(\ls -p $(brew --repository)/Library/Contributions/cmds \
2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \ 2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \
-e "s/.*\.css.*//g" -e "s/.*\.erb.*//g") -e "s/.*\///g")
__brewcomp " __brewcomp "
--cache --cellar --config --cache --cellar --config
--env --prefix --repository --env --prefix --repository

View File

@ -108,7 +108,7 @@ class Test
if ARGV.include? "--html" and not @@css if ARGV.include? "--html" and not @@css
require 'erb' require 'erb'
root = HOMEBREW_CONTRIBUTED_CMDS root = HOMEBREW_CONTRIBUTED_CMDS/"brew-test-bot"
@@css = IO.read root + "brew-test-bot.css" @@css = IO.read root + "brew-test-bot.css"
@@index_html = ERB.new IO.read root + "brew-test-bot.index.html.erb" @@index_html = ERB.new IO.read root + "brew-test-bot.index.html.erb"
@@commit_html = ERB.new IO.read root + "brew-test-bot.commit.html.erb" @@commit_html = ERB.new IO.read root + "brew-test-bot.commit.html.erb"