1 /* the following changes file names for PureC projects */
6 if (basename(ordner) == "") /* ist Ordner */
8 ChangeFilenames(ordner);
12 proc ChangeFilenames(folder)
13 local i,entries,directory,file;
15 entries = filelist(directory,folder);
16 for (i = 0; i < entries; ++i)
18 file = directory[i,0];
19 if ((directory[i,3]&16) > 0) /* subdirectory */
21 ChangeFilenames(folder+file+"\\");
25 if ((stricmp(suffix(file),".h")==0)|(stricmp(suffix(file),".c")==0))
26 ChangeFilename(folder,file);
31 proc ChangeFilename(path,datei)
35 newfile[0]=(newfile[0] | 32) ^ 32;
36 err=files.rename("-q",path+datei,newfile);