From f840b413984dab156f600ebffe569e8cf241d7c0 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 19 Feb 2003 20:06:39 +0000 Subject: [PATCH] * lib/am/distdir.am (distcheck): Strip any leading DOS drive from dc_install_base. --- ChangeLog | 5 +++++ lib/am/distdir.am | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4480112ad..8092afade 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-02-19 Richard Dawe + + * lib/am/distdir.am (distcheck): Strip any leading DOS drive + from dc_install_base. + 2003-02-19 Alexandre Duret-Lutz * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install diff --git a/lib/am/distdir.am b/lib/am/distdir.am index f4a26ef6a..3555eecb0 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -1,5 +1,5 @@ ## automake - create Makefile.in from Makefile.am -## Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. +## Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -298,7 +298,10 @@ distcheck: dist mkdir $(distdir)/_inst ## Undo the write access. chmod a-w $(distdir) - dc_install_base=`$(am__cd) $(distdir)/_inst && pwd` \ +## Compute the absolute path of `_inst'. Strip any leading DOS drive +## to allow DESTDIR installations. Otherwise $(DESTDIR)$(prefix) would +## expand to c:/temp/am-dc-5668/c:/src/package/package-1.0/_inst. + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ ## We will attemp a DESTDIR install in $dc_destdir. We don't ## create this directory under $dc_install_base, because it would ## create very long directory names. -- 2.47.2