Branch: Tag:

1996-03-31

1996-03-31 04:10:29 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

improved

Rev: bin/htmlify_docs.lpc:1.7
Rev: bin/rsif:1.3

13:       for(i=3; i<argc; i++)    { -  if(file=read_bytes(argv[i])) +  if(file_contents=read_bytes(argv[i]))    {    if(-1!=strstr(file,argv[1]))    {    write("Processing "+argv[i]+".\n"); -  file=replace(file,argv[1],argv[2]); +  file_contents=replace(file_contents,argv[1],argv[2]);       if( mv(argv[i],argv[i]+"~") )    { -  write_file(argv[i],file); +  write_file(argv[i],file_contents);    }else{    write("Failed to create backup file.\n");    }