From 065252c51ea4e86322fea169b82b64812b451470 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Fri, 19 Oct 2001 11:33:15 +0000 Subject: [PATCH] Add --help option. Add support for building in arbitrary source trees. --- admin/build-configs | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/admin/build-configs b/admin/build-configs index 521afb3acff..5827276bf5e 100755 --- a/admin/build-configs +++ b/admin/build-configs @@ -21,6 +21,11 @@ # Build Emacs in several different configurations. +require 5; +use Getopt::Long; +use File::Basename; +use Cwd; + @configs = ( ["--without-x", "--optim"], @@ -39,7 +44,31 @@ unlink $log; $root = $ENV{"EMACS_ROOT"}; $root = "/gd/gnu/emacs" unless $root; -chdir ($root) or die "Cannot chdir to emacs"; + +$rc = GetOptions ("help" => \$help); +if ($rc == 0 || $help) + { + print <