Update of /cvsroot/monetdb/buildtools/autogen/autogen
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17091

Modified Files:
      Tag: MonetDB_1-20
        am.py 
Log Message:
I think this is the correct fix for the problem that find exited with
an error (find: MonetDB-1.20.1/NT/CVS: No such file or directory).
The problem is that without the -depth the directory is deleted before
find is done with it, and so issues an error.  We want find to remove
all CVS directories, not just the first it encounters.


Index: am.py
===================================================================
RCS file: /cvsroot/monetdb/buildtools/autogen/autogen/am.py,v
retrieving revision 1.55.2.5
retrieving revision 1.55.2.6
diff -u -d -r1.55.2.5 -r1.55.2.6
--- am.py       7 Dec 2007 13:48:41 -0000       1.55.2.5
+++ am.py       7 Dec 2007 15:21:09 -0000       1.55.2.6
@@ -123,7 +123,7 @@
     for i in values:
         fd.write("\tmkdir -p $(distdir)/%s\n" % i)
         fd.write("\tcp -pR $(srcdir)/%s/* $(distdir)/%s\n" % (i, i))
-        fd.write("\t-find $(distdir)/%s -name CVS -exec rm -rf {} \\;\n" % i)
+        fd.write("\tfind $(distdir)/%s -depth -name CVS -exec rm -rf {} \\;\n" 
% i)
         fd.write("\tfind $(distdir)/%s -perm -0100 -type f ! -name \\*.bat ! 
-name \\*.sh ! -exec grep -q '^#!' {} \\; -exec chmod a-x {} \\;\n" % i)
 
 def am_extra_headers(fd, var, values, am):


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to