From b283c24aa829e4a1fdb963f981e34b2137c51aa8 Mon Sep 17 00:00:00 2001 From: PHO Date: Thu, 28 Feb 2013 11:07:22 +0900 Subject: [PATCH] new subcommand: autogen --- src/main.bash | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.bash b/src/main.bash index 73dc7cb..d9663fe 100644 --- a/src/main.bash +++ b/src/main.bash @@ -2,6 +2,10 @@ function runMake () { run gmake -w -j $(detectNumCPUs) "$@" } +function autogen () { + run autoreconf -v -i -f +} + function configure () { if [[ ! -f configure.ac && ! -f configure.in ]]; then echo "ERROR: Neither configure.ac nor configure.in exists in the current directory." >&2 @@ -9,7 +13,7 @@ function configure () { fi if [[ ! -f configure ]]; then - run autoreconf -v -i -f + autogen fi if [[ ! -f "_build/Makefile" ]]; then @@ -67,7 +71,8 @@ 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 + autogen run autoreconf(1) + configure run "$0 autogen" and "./configure" if necessary clean run "rm -rf _build" dist run "make dist" distcheck run "$0 configure" then "make distcheck" @@ -85,6 +90,7 @@ function main () { local cmd case "$1" in ""|"build" ) cmd="build" ;; + "autogen" ) cmd="autogen" ;; "configure") cmd="configure";; "doc" ) cmd="doc" ;; "check" ) cmd="check" ;; -- 2.40.0