mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
avoid deleting needed files when the .cvsignore file contains empty lines (mysqli)
This commit is contained in:
parent
9a10491752
commit
d956e33ed2
1 changed files with 5 additions and 2 deletions
|
@ -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
|
// Cleans up files that do not belong in CVS
|
||||||
|
|
||||||
var FSO = WScript.CreateObject("Scripting.FileSystemObject");
|
var FSO = WScript.CreateObject("Scripting.FileSystemObject");
|
||||||
|
@ -30,6 +30,7 @@ function find_cvsignore(dirname)
|
||||||
var fc = new Enumerator(f.SubFolders);
|
var fc = new Enumerator(f.SubFolders);
|
||||||
|
|
||||||
for (; !fc.atEnd(); fc.moveNext()) {
|
for (; !fc.atEnd(); fc.moveNext()) {
|
||||||
|
WScript.StdOut.WriteLine(fc.item());
|
||||||
find_cvsignore(fc.item());
|
find_cvsignore(fc.item());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +108,9 @@ function kill_from_cvsignore(igfile)
|
||||||
while (!t.atEndOfStream) {
|
while (!t.atEndOfStream) {
|
||||||
l = t.ReadLine();
|
l = t.ReadLine();
|
||||||
// don't kill their config.nice file(s)
|
// don't kill their config.nice file(s)
|
||||||
if (l.match("config\.nice.*"))
|
if (l.match("config\.nice.*") ||
|
||||||
|
l.match("") ||
|
||||||
|
l.match("*"))
|
||||||
continue;
|
continue;
|
||||||
rm_r(dir + l);
|
rm_r(dir + l);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue