3 # Wrapper for running Cogito commands.
4 # Copyright (c) Petr Baudis, 2005
6 # Takes a variable number of arguments where the first argument should
7 # either be a Cogito command or one of the supported options. If no
8 # arguments are specified an overview of all the Cogito commands will be
11 # Enables all Cogito commands to be accessed as subcommands, for example
21 # --version:: Show the Cogito toolkit version
22 # Show the version of the Cogito toolkit. Equivalent to the output
25 USAGE
="cg [--version | COMMAND [ARGS]...]"
29 -h|
--help|
"") cmd
="help" ;;
30 --version) cmd
="version" ;;
32 echo "cg: unknown option '$cmd' (try 'cg --help' or 'cg --version')" >&2
38 # Cut'n'pasted from cg-Xlib
39 save_IFS
="$IFS"; IFS
=:
43 [ -x "$exefile" ] && exec "$exefile" "$@"
47 echo "cg: unknown command '$cmd' (try 'cg help')" >&2