This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
[Bug] gcc-mingw preremove script
- From: "Max Bowsher" <maxb at ukf dot net>
- To: <cygwin-apps at cygwin dot com>
- Date: Sat, 21 Jun 2003 15:06:03 +0100
- Subject: [Bug] gcc-mingw preremove script
The gcc-mingw preremove script does not correctly delete files in
gcc-mingw-manifest.lst.
The filenames in the manifest are relative to /usr, so the script must "cd
/usr" before attempting to act on the manifest.
Also, I suggest adding -v to the rm command, to assist debugging (it only
goes into setup.log.full, anyway).
--------------------------------------------------------------
--- Makefile.in.orig 2003-06-21 14:10:33.000000000 +0100
+++ Makefile.in 2003-06-21 14:11:01.000000000 +0100
@@ -72,7 +72,8 @@
(echo '#!/bin/sh';\
echo '[ -f /etc/preremove/gcc-mingw-manifest.lst ] || exit 0';\
echo 'echo "*** Removing gcc-mingw files. Please wait. ***"';\
- echo '/bin/rm -rf `cat /etc/preremove/gcc-mingw-manifest.lst`
/etc/preremove/gcc-mingw-manifest.lst';\
+ echo 'cd /usr';\
+ echo '/bin/rm -rvf `cat /etc/preremove/gcc-mingw-manifest.lst`
/etc/preremove/gcc-mingw-manifest.lst';\
echo '[ -L /usr/i686-pc-mingw32/include -a -L /usr/i686-pc-mingw32/lib ]
&& /bin/rm -rf /usr/i686-pc-mingw32';\
) > $@
chmod a+x $@
--------------------------------------------------------------
Max.