make of OTP applications

Ulf Wiger <>
Wed Sep 27 14:26:16 CEST 2000


It's bugged me for quite some time that there isn't good make
support for .app files.

The different steps that should be taken each time, and which should
be automated, are:

- Verify that the .app file is syntactically correct
- Verify that the 'modules' listing includes all modules in the
  ebin/ directory
- Verify that the 'vsn' attribute corresponds to the app version
  suffix in the filename.

The attached shellscript does the above, assuming that your 
template app file has been named <AppName>.appSrc, and has 
placeholders for 'id', 'vsn', and 'modules'.

Example, ccviewer.appSrc:

{application, ccviewer,
 [{description, "Web-Based ClearCase browser tool"},
  {id,          "&id&"},
  {vsn,         "&vsn&"},
  {modules,     "&modules&"},
  ...]}.

The script can surely be improved. For one thing, it should probably
not be a sequence of Erlang commands piped into an Erlang shell, but
that was my quick-and-dirty approach. I thought I'd share it
with you anyway.

/Uffe
-- 
Ulf Wiger                                    tfn: +46  8 719 81 95
Network Architecture & Product Strategies    mob: +46 70 519 81 95
Ericsson Telecom AB,              Datacom Networks and IP Services
Varuvägen 9, Älvsjö,                    S-126 25 Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app_make.sh
Type: application/x-sh
Size: 1100 bytes
Desc: app_make.sh
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20000927/d151aad6/attachment.sh>


More information about the erlang-questions mailing list