2008-05-31  Dave Korn  <dave.korn@artimi.com>

	* bin/cygport.in (cygautoreconf):  Leave COPYING and INSTALL alone
	if they turn out to be directories rather than ordinary files.

Index: bin/cygport.in
===================================================================
RCS file: /cvsroot/cygwin-ports/cygport/bin/cygport.in,v
retrieving revision 1.116
diff -p -u -r1.116 cygport.in
--- bin/cygport.in	21 May 2008 04:40:11 -0000	1.116
+++ bin/cygport.in	31 May 2008 15:31:58 -0000
@@ -948,8 +948,8 @@ cygautoreconf() {
 	# restore them afterwards
 	for f in COPYING INSTALL
 	do
-		cp ${f} ${f}.temp;
-		chmod +w ${f}.temp;
+		[ -f ${f} ] && ( cp ${f} ${f}.temp &&
+		chmod +w ${f}.temp ) || true;
 	done
 
 	check_prog_req autoreconf autoconf
@@ -1011,7 +1011,7 @@ cygautoreconf() {
 
 	for f in COPYING INSTALL
 	do
-		mv -f ${f}.temp ${f};
+		[ -f ${f} ] && mv -f ${f}.temp ${f} || true;
 	done
 }
 
