Permalink
Browse files

close #11: add scons support

  • Loading branch information...
1 parent 2091601 commit 2f58391e4f47c1d0621c3ecc03d453fdc84ce226 @nicoulaj committed Feb 5, 2012
Showing with 9 additions and 4 deletions.
  1. +2 −1 README.pod
  2. +1 −1 completion/completion.bash
  3. +1 −1 completion/completion.zsh
  4. +5 −1 src/broom.sh
View
@@ -26,7 +26,8 @@ them.
Comma-separated list of tools to run the cleanup for. The available tools
are: I<make>, I<rake>, I<python>, I<ant>, I<mvn>, I<gradle>, I<buildr>,
-I<sbt>, I<ninja>, I<git> and I<bundle>. By default, all tools are used.
+I<sbt>, I<ninja>, I<scons>, I<git> and I<bundle>. By default, all tools
+are used.
=item B<-v, --verbose>
@@ -37,7 +37,7 @@ _broom()
prev=${COMP_WORDS[COMP_CWORD-1]}
case "$prev" in
-t|--tools)
- COMPREPLY=( $(compgen -W "make rake python ant mvn gradle buildr sbt ninja git bundle" $cur) )
+ COMPREPLY=( $(compgen -W "make rake python ant mvn gradle buildr sbt ninja scons git bundle" $cur) )
;;
*)
COMPREPLY=( $(compgen -W "-v --verbose -q --quiet -n --dry-run -t --tools" -- $cur ) )
@@ -28,7 +28,7 @@ _arguments \
'*'{-v,--verbose}'[increase verbosity level]' \
'*'{-q,--quiet}'[decrease verbosity level]' \
{-n,--dry-run}'[do not actually perform actions]' \
- {-t,--tools}'[comma-separated list of tools to use]: :_values -s ',' tool make rake python ant mvn gradle buildr sbt ninja git bundle' \
+ {-t,--tools}'[comma-separated list of tools to use]: :_values -s ',' tool make rake python ant mvn gradle buildr sbt ninja scons git bundle' \
'*: :_files -/'
# vim: ft=zsh sw=2 ts=2 et
View
@@ -27,7 +27,7 @@ VERSION=dev
# Tools definitions
# ----------------------------------------------------------------------
-AVAILABLE_TOOLS=(make rake python ant mvn gradle buildr sbt ninja git bundle)
+AVAILABLE_TOOLS=(make rake python ant mvn gradle buildr sbt ninja scons git bundle)
# Make
make_project_marker() { echo "Makefile"; }
@@ -60,6 +60,10 @@ sbt_cwd() { [[ $1 == *.sbt ]] && echo `dirname $1` || echo "${1%\/project\/*}";
ninja_project_marker() { echo "build.ninja"; }
ninja_clean_args() { echo "-t clean"; }
+# SCons
+scons_project_marker() { echo "SConstruct"; }
+scons_clean_args() { echo "-c"; }
+
# Git gc
git_project_marker() { echo ".git/"; }
git_clean_args() { echo "gc"; }

0 comments on commit 2f58391

Please sign in to comment.