Mercurial > emacs
comparison admin/build-configs @ 38850:f87dbbd87498
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 16 Aug 2001 15:23:50 +0000 |
parents | |
children | 0f6e6a0405c4 |
comparison
equal
deleted
inserted
replaced
38849:4998d97a9215 | 38850:f87dbbd87498 |
---|---|
1 #! /usr/bin/perl | |
2 | |
3 # Copyright (C) 2001 Free Software Foundation, Inc. | |
4 # | |
5 # This file is part of GNU Emacs. | |
6 # | |
7 # GNU Emacs is free software; you can redistribute it and/or modify | |
8 # it under the terms of the GNU General Public License as published by | |
9 # the Free Software Foundation; either version 2, or (at your option) | |
10 # any later version. | |
11 # | |
12 # GNU Emacs is distributed in the hope that it will be useful, | |
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 # GNU General Public License for more details. | |
16 # | |
17 # You should have received a copy of the GNU General Public License | |
18 # along with GNU Emacs; see the file COPYING. If not, write to the | |
19 # Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 # Boston, MA 02111-1307, USA. | |
21 | |
22 # Build Emacs in several different configurations. | |
23 | |
24 @configs = | |
25 ( | |
26 ["--without-x", "--optim"], | |
27 ["--without-x-toolkit", "--optim"], | |
28 ["--without-toolkit-scroll-bars", "--optim"], | |
29 ["--with-x-toolkit=lucid", "--optim"], | |
30 ["--with-x-toolkit=motif", "--optim"], | |
31 ["--with-x-toolkit=motif", "--enable-checking"], | |
32 ["--with-x-toolkit=motif", "--gcc3"], | |
33 ["--with-x-toolkit=motif", ""], | |
34 ); | |
35 | |
36 $log = "/tmp/$$.out"; | |
37 print "Using log file $log\n"; | |
38 unlink $log; | |
39 | |
40 $root = $ENV{"EMACS_ROOT"}; | |
41 $root = "/gd/gnu/emacs" unless $root; | |
42 chdir ($root) or die "Cannot chdir to emacs"; | |
43 | |
44 foreach $config (@configs) | |
45 { | |
46 my $configure_options = @$config[0]; | |
47 my $make_options = @$config[1]; | |
48 my $rc; | |
49 | |
50 print "$configure_options, $make_options\n"; | |
51 unlink "config.cache"; | |
52 | |
53 $rc = system ("$root/configure $configure_options >>$log 2>&1"); | |
54 if ($rc != 0) | |
55 { | |
56 print "configure failed\n"; | |
57 exit 1; | |
58 } | |
59 | |
60 $rc = system ("make-emacs --all $make_options >>$log 2>&1"); | |
61 if ($rc != 0) | |
62 { | |
63 print "Make failed\n"; | |
64 exit 1; | |
65 } | |
66 } | |
67 | |
68 # Local Variables: | |
69 # mode: cperl | |
70 # End: |