~statik/ubuntu/maverick/erlang/erlang-merge-testing

« back to all changes in this revision

Viewing changes to lib/sasl/src/systools_make.erl

  • Committer: Bazaar Package Importer
  • Author(s): Sergei Golovan
  • Date: 2009-05-01 10:14:38 UTC
  • mfrom: (3.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090501101438-6qlr6rsdxgyzrg2z
Tags: 1:13.b-dfsg-2
* Cleaned up patches: removed unneeded patch which helped to support
  different SCTP library versions, made sure that changes for m68k
  architecture applied only when building on this architecture.
* Removed duplicated information from binary packages descriptions.
* Don't require libsctp-dev build-dependency on solaris-i386 architecture
  which allows to build Erlang on Nexenta (thanks to Tim Spriggs for
  the suggestion).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%% ``The contents of this file are subject to the Erlang Public License,
 
1
%%
 
2
%% %CopyrightBegin%
 
3
%% 
 
4
%% Copyright Ericsson AB 1996-2009. All Rights Reserved.
 
5
%% 
 
6
%% The contents of this file are subject to the Erlang Public License,
2
7
%% Version 1.1, (the "License"); you may not use this file except in
3
8
%% compliance with the License. You should have received a copy of the
4
9
%% Erlang Public License along with this software. If not, it can be
5
 
%% retrieved via the world wide web at http://www.erlang.org/.
 
10
%% retrieved online at http://www.erlang.org/.
6
11
%% 
7
12
%% Software distributed under the License is distributed on an "AS IS"
8
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
14
%% the License for the specific language governing rights and limitations
10
15
%% under the License.
11
16
%% 
12
 
%% The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
 
%% Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
 
%% AB. All Rights Reserved.''
15
 
%% 
16
 
%%     $Id$
 
17
%% %CopyrightEnd%
17
18
%%
18
19
-module(systools_make).
19
20
 
976
977
generate_script(Output, Release, Appls, Flags) ->
977
978
    PathFlag = path_flag(Flags),
978
979
    Variables = get_variables(Flags),
 
980
    Preloaded = preloaded(),
 
981
    Mandatory = mandatory_modules(),
979
982
    Script = {script, {Release#release.name,Release#release.vsn},
980
 
              [{preLoaded, preloaded()},
 
983
              [{preLoaded, Preloaded},
981
984
               {progress, preloaded},
982
985
               {path, create_mandatory_path(Appls, PathFlag, Variables)},
983
 
               {primLoad, mandatory_modules()},
 
986
               {primLoad, Mandatory},
984
987
               {kernel_load_completed},
985
988
               {progress, kernel_load_completed}] ++
986
 
              load_appl_mods(Appls, mandatory_modules() ++ preloaded(),
 
989
              load_appl_mods(Appls, Mandatory ++ Preloaded,
987
990
                             PathFlag, Variables) ++
988
991
              [{path, create_path(Appls, PathFlag, Variables)}] ++
989
992
              create_kernel_procs(Appls) ++
1281
1284
    lists:foldl(
1282
1285
      fun({Subs,Ms}, Cmds) ->
1283
1286
              [{path, [filename:join([Path | Subs])]},
1284
 
               {primLoad, Ms} | Cmds]
 
1287
               {primLoad,lists:sort(Ms)} | Cmds]
1285
1288
      end, [], SplitMods).
1286
1289
 
1287
1290
 
1318
1321
%% The error_handler self must still be there though.
1319
1322
 
1320
1323
mandatory_modules() ->
 
1324
    %% Sorted
1321
1325
    [error_handler].
1322
1326
 
1323
1327
%%______________________________________________________________________
1324
1328
%% This is the modules that are preloaded into the Erlang system.
1325
1329
 
1326
 
preloaded() -> [erlang,erl_prim_loader,prim_file,prim_inet,init,otp_ring0].
 
1330
preloaded() ->
 
1331
    %% Sorted
 
1332
    [erl_prim_loader,erlang,init,otp_ring0,prim_file,prim_inet, prim_zip,zlib]. 
1327
1333
 
1328
1334
%%______________________________________________________________________
1329
1335
%% Kernel processes; processes that are specially treated by the init