X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=autobuild.git;a=blobdiff_plain;f=src%2Fmain.bash;fp=src%2Fmain.bash;h=0e902119b1fde6af02286913d3105d39de8a9033;hp=4e87e8cf8b5e8987ea7b15b0dc6a7208248a014b;hb=4b7873d155ba167b3afbd2d1e2a28a3f4c567431;hpb=6d85aaa12ad6503b417b6a3a07a7c3e0566bb80d diff --git a/src/main.bash b/src/main.bash index 4e87e8c..0e90211 100644 --- a/src/main.bash +++ b/src/main.bash @@ -59,19 +59,21 @@ function usage () { Usage: $0 [COMMAND] This is an automation script designed to work with autotools. It creates a -directory "./_build" and builds any files inside it. +directory "./_build" and builds any files inside it. Its behaviour is +somewhat configurable: see "./Build.rc" for details. If no COMMAND is given, it defaults to "build". Commands: - build run "$0 configure" then make(1). - check [ARG] run "$0 build" then "make check [ARG]". - configure run autoreconf(1) and "./configure" if necessary. + build run "$0 configure" then make(1) + check [ARG] run "$0 build" then "make check [ARG]" + configure run autoreconf(1) and "./configure" if necessary clean run "rm -rf _build" dist run "make dist" distcheck run "$0 configure" then "make distcheck" - doc similar to "$0 build" but only build the documentation. - install [ARG] run "$0 build" then "make install [ARG]". + doc similar to "$0 build" but only build the documentation + help print this message + install [ARG] run "$0 build" then "make install [ARG]" Please report any bugs, feature requests, and pull requests (the most preferred!) to the maintainer presented in the preamble of the "$0" itself. @@ -89,6 +91,7 @@ function main () { "clean" ) cmd="clean" ;; "dist" ) cmd="dist" ;; "distcheck") cmd="distcheck";; + "help" ) cmd="usage" ;; "install" ) cmd="install" ;; *) cmd="usage" ;; esac