Skip to content

Commit

Permalink
turn poop into a sub script
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Bombadil committed Oct 6, 2012
1 parent 9d625ac commit 2ea035e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions libexec/poop
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,17 @@ shome="$(cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"

# load a jason bourne library
source "$shome/bin/_treadstone"
require 'poop'

# parse the command-line

# entry point
function main {
require 'poop'

local nm_recipe
for nm_recipe in "$@"; do
recipe "$nm_recipe"
done
}

# parse the command-line
parse_command_line "$@" || exit $?
eval set -- "${FLAGS_ARGV}"

# pass arguments to entry point
main "$@"
require 'sub' "$BASH_SOURCE" "$@"

0 comments on commit 2ea035e

Please sign in to comment.