* lib/am/distdir.am (distcheck): Strip any leading DOS drive
authorAlexandre Duret-Lutz <adl@gnu.org>
Wed, 19 Feb 2003 20:06:39 +0000 (20:06 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Wed, 19 Feb 2003 20:06:39 +0000 (20:06 +0000)
from dc_install_base.

ChangeLog
lib/am/distdir.am

index 4480112add3849f98c2a4fff790fe304ed1004c7..8092afaded3e2a44c414f794ca84e92f86de1c62 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-02-19  Richard Dawe  <rich@phekda.freeserve.co.uk>
+
+       * lib/am/distdir.am (distcheck): Strip any leading DOS drive
+       from dc_install_base.
+
 2003-02-19  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * lib/am/texinfos.am (install-info-am, uninstall-info-am): Install
index f4a26ef6a8860743e254830b77cb31288fca5463..3555eecb04ec7c0b66728d1a01c64f0eb3699b42 100644 (file)
@@ -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.