[Bug] gcc-mingw preremove script
Max Bowsher
maxb@ukf.net
Sat Jun 21 16:47:00 GMT 2003
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.
More information about the Cygwin-apps
mailing list