Compatibility with Debian packaging.

Packaging Mercury for Debian requires creating some patches to make sure that
Mercury can be built under the control of dpkg-buildpackage.  It's recommended
that these patches are pushed upstream (into Mercury) so that everyone can
benefit from them, not just Debian packagers.

Mmake.common.in:
scripts/Mmake.vars.in:
    Install Mercury at $DESTDIR/@prefix@, $DESTDIR helps someone setup Mercury
    to run from @prefix@ while putting it in $DESTDIR.  $DESTDIR/* can easily
    be tared up and then deployed on other systems.

Mmakefile:
Makefile:
    Pass the $DESTDIR variable to make sub-processes.

scripts/Mercury.config.in:
scripts/Mercury.config.bootstrap.in:
    Remove the hash-bang line from these scripts since they are not executable.

    This change improves conformance with Debian packaging standards.
This commit is contained in:
Paul Bone
2010-12-14 07:01:55 +00:00
parent 5763d41ff9
commit fd1459eccc
6 changed files with 15 additions and 7 deletions

View File

@@ -1,4 +1,7 @@
#! /bin/sh
#
# This file has no hash-bang line since it isn't intended to be executable,
# instead it is 'sourced' by other scripts.
#
# @configure_input@
#---------------------------------------------------------------------------#
# Copyright (C) 2003-2004, 2006-2007, 2010 The University of Melbourne.

View File

@@ -1,4 +1,7 @@
#! /bin/sh
#
# This file has no hash-bang line since it isn't intended to be executable,
# instead it is 'sourced' by other scripts.
#
# @configure_input@
#---------------------------------------------------------------------------#
# Copyright (C) 2003-2007, 2010 The University of Melbourne.

View File

@@ -686,7 +686,7 @@ INSTALL_MKDIR = mkdir -p
# script (e.g. in the shell scripts mmc, ml, mmake, etc) that will not
# be updated simply by overriding INSTALL_PREFIX.
INSTALL_PREFIX = @prefix@
INSTALL_PREFIX = $(DESTDIR)/@prefix@
FINAL_INSTALL_PREFIX = @prefix@
INSTALL_BINDIR = $(INSTALL_PREFIX)/bin
INSTALL_LIBDIR = $(INSTALL_PREFIX)/lib/mercury
@@ -700,7 +700,7 @@ INSTALL_MAN_DIR = $(INSTALL_PREFIX)/man
INSTALL_HTML_DIR = $(INSTALL_PREFIX)/lib/mercury/html
INSTALL_MDB_DOC_DIR = $(INSTALL_PREFIX)/lib/mercury/mdb
INSTALL_ELISP_DIR = $(INSTALL_PREFIX)/lib/mercury/elisp
INSTALL_CGI_DIR = @CGIDIR@
INSTALL_CGI_DIR = $(DESTDIR)/@CGIDIR@
# You should not need to override anything below here