From: Alexandre Duret-Lutz Date: Wed, 19 Feb 2003 20:06:39 +0000 (+0000) Subject: * lib/am/distdir.am (distcheck): Strip any leading DOS drive X-Git-Tag: Release-1-7-3b~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f840b413984dab156f600ebffe569e8cf241d7c0;p=thirdparty%2Fautomake.git * lib/am/distdir.am (distcheck): Strip any leading DOS drive from dc_install_base. --- 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.