Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

close #11: add scons support

  • Loading branch information...
commit 2f58391e4f47c1d0621c3ecc03d453fdc84ce226 1 parent 2091601
@nicoulaj authored
View
3  README.pod
@@ -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>
View
2  completion/completion.bash
@@ -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 ) )
View
2  completion/completion.zsh
@@ -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
6 src/broom.sh
@@ -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"; }
Please sign in to comment.
Something went wrong with that request. Please try again.