From d956e33ed29af3f950efa400011ccbee36ba62ff Mon Sep 17 00:00:00 2001 From: "Frank M. Kromann" Date: Wed, 7 Apr 2004 18:48:23 +0000 Subject: avoid deleting needed files when the .cvsignore file contains empty lines (mysqli) --- win32/build/cvsclean.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/win32/build/cvsclean.js b/win32/build/cvsclean.js index d16863652e..374243f357 100644 --- a/win32/build/cvsclean.js +++ b/win32/build/cvsclean.js @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cvsclean.js,v 1.2 2004-01-08 17:33:29 sniper Exp $ */ +/* $Id: cvsclean.js,v 1.3 2004-04-07 18:48:23 fmk Exp $ */ // Cleans up files that do not belong in CVS var FSO = WScript.CreateObject("Scripting.FileSystemObject"); @@ -30,6 +30,7 @@ function find_cvsignore(dirname) var fc = new Enumerator(f.SubFolders); for (; !fc.atEnd(); fc.moveNext()) { + WScript.StdOut.WriteLine(fc.item()); find_cvsignore(fc.item()); } @@ -107,7 +108,9 @@ function kill_from_cvsignore(igfile) while (!t.atEndOfStream) { l = t.ReadLine(); // don't kill their config.nice file(s) - if (l.match("config\.nice.*")) + if (l.match("config\.nice.*") || + l.match("") || + l.match("*")) continue; rm_r(dir + l); } -- cgit v1.2.1