Hi,

Ralf Wildenhues wrote:
Hello,


usefully.  What you can do instead is

  upgrade:
        $(MAKE) $(AM_MAKEFLAGS) preinstall
        $(MAKE) $(AM_MAKEFLAGS) install
        $(MAKE) $(AM_MAKEFLAGS) postinstall

Thanks. Good ! I'll do this way.

...


I'm not sure whether we should introduce such pre hooks.

All this ideas solve my problem.

Only to let you know. Maybe other people have the same needs than me. There are two reasons I'm doing this.

* My package uses a database library (BerkeleyDB). From time to time,
  data format changes. So, to install the new release, I need to dump
  the database using the **old version**, install the new version and
  recreate databases with the **new version**.

* My software is a mail filter. This filter can be running on a busy
  server (handling, says, 10 or 20 messages per second). Downtime shall
  be minimized. The sequence of operations are : stop the MTA, stop the
  filter, make upgrade, restarts the filter and restarts the MTA. It's
  pratical and less error prone to have a single command to launch
  instead of typing all them. Either way, all this can be done with a
  small shell script.

Regards,

Jose-Marcio



Reply via email to