ada-mode-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

automate calling build.sh, install.sh?


From: Stephen Leake
Subject: automate calling build.sh, install.sh?
Date: Sat, 09 May 2020 08:52:11 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (windows-nt)

It was suggested on the emacs-devel list that ELPA packages can automate
calling external tools by including something like:

(eval-when-compile (call-process "build.sh") (call-process "install.sh"))

in the autoloads.el file.

That would call build.sh and install.sh when the ada-mode package is
installed by M-x list-packages.

The first time you install ada-mode, this probably won't work, because
you have to install gnatcoll or something. But after that, for updating
to a new version, this does simplify things a bit.

Unless you need to customize those files, or need to run install via
sudo, or something. There could be a flag:

(unless ada-mode-no-auto-install
  (eval-when-compile (call-process "build.sh") (call-process "install.sh")))

I'd like to set the default for ada-mode-no-auto-install to t, so it
"just works" for the typical user.

So should I put this in?

-- 
-- Stephe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]