//\r
-// Quick hack to work around not having sed, or any other reasonable \r
+// Quick hack to work around not having sed, or any other reasonable\r
// way to edit a file from a script on Windows......\r
//\r
-// Copyright (c) 2010, Apple Inc. All rights reserved.\r
-// \r
-// All rights reserved. This program and the accompanying materials\r
+// Copyright (c) 2010, Apple Inc. All rights reserved.<BR>\r
+//\r
+// This program and the accompanying materials\r
// are licensed and made available under the terms and conditions of the BSD License\r
// which accompanies this distribution. The full text of the license may be found at\r
// http://opensource.org/licenses/bsd-license.php\r
// argv[1] - Old File\r
// argv[2] - New File\r
// argv[3+n] - Match String\r
-// argv[4+n] - Replace string \r
+// argv[4+n] - Replace string\r
int\r
main (int argc, char **argv)\r
{\r
// into a buffer that is as big as the maximum search key size.\r
// Then we can search the keys for a match. If no match\r
// copy the old file character to the new file. If it is a match\r
- // then copy the replacement string into the output file. \r
- // This code assumes the file system is smart and caches the \r
- // file in a buffer. So all the reads don't really hit the disk. \r
+ // then copy the replacement string into the output file.\r
+ // This code assumes the file system is smart and caches the\r
+ // file in a buffer. So all the reads don't really hit the disk.\r
InFilePos = 0;\r
while (InFilePos < (InFileSize - MinLenKey)) {\r
fseek (In, InFilePos, SEEK_SET);\r
if (!Found) {\r
fputc (Key[0], Out);\r
}\r
- \r
+\r
InFilePos++;\r
}\r
\r
while ((c = fgetc (In)) != EOF) {\r
fputc (c, Out);\r
}\r
- \r
+\r
fclose (In);\r
fclose (Out);\r
free (Key);\r