-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Dave Korn wrote:
| Something like this is required to support cygportification of gcc-4.3.0.
How about the attached?
Yaakov
Cygwin Ports
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEAREIAAYFAkhr7tIACgkQpiWmPGlmQSMQEACfUfY/2t4slRPbHzQHkOoF11pU
N1AAn04Jg65a9O/d5QeLud5DhmkveAc7
=3RZv
-----END PGP SIGNATURE-----
Index: bin/cygport.in
===================================================================
RCS file: /cvsroot/cygwin-ports/cygport/bin/cygport.in,v
retrieving revision 1.125
diff -u -r1.125 cygport.in
--- bin/cygport.in 28 Jun 2008 00:44:00 -0000 1.125
+++ bin/cygport.in 2 Jul 2008 21:08:22 -0000
@@ -946,16 +946,24 @@
# Automake will exit if these are not present
# dodoc won't install these, however, since they will
be empty
- touch
${d}/{AUTHORS,COPYING,ChangeLog,INSTALL,NEWS,README};
- fi
- done
+ touch ${d}/{AUTHORS,ChangeLog,NEWS,README};
- # These can be overwritten by automake, so we back them up now and
- # restore them afterwards
- for f in COPYING INSTALL
- do
- cp ${f} ${f}.temp;
- chmod +w ${f}.temp;
+ # These required files can be overwritten by automake,
so we
+ # back them up now and restore them afterwards
+ for f in COPYING INSTALL
+ do
+ if [ -f ${d}/${f} ]
+ then
+ cp ${d}/${f} ${d}/${f}.temp;
+ chmod +w ${f}.temp;
+ elif [ -d ${d}/${f} ]
+ then
+ :
+ else
+ touch ${d}/${f}
+ fi
+ done
+ fi
done
check_prog_req autoreconf autoconf
@@ -1012,12 +1020,15 @@
do
touch ${d}/${f}
done
- fi
- done
- for f in COPYING INSTALL
- do
- mv -f ${f}.temp ${f};
+ for f in COPYING INSTALL
+ do
+ if [ -f ${d}/${f}.temp ]
+ then
+ mv -f ${d}/${f}.temp ${d}/${f};
+ fi
+ done
+ fi
done
}
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cygwin-ports-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cygwin-ports-general