From: Gerd Moellmann Date: Fri, 19 Oct 2001 11:33:15 +0000 (+0000) Subject: Add --help option. Add support for building X-Git-Tag: emacs-21.1~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=065252c51ea4e86322fea169b82b64812b451470;p=emacs.git Add --help option. Add support for building in arbitrary source trees. --- 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 <