Roxen.git / server / bin / setup_nsr.pike

version» Context lines:

Roxen.git/server/bin/setup_nsr.pike:1: - // $Id: setup_nsr.pike,v 1.1 2003/09/24 10:04:20 grubba Exp $ + // $Id: setup_nsr.pike,v 1.2 2003/09/24 10:05:28 grubba Exp $   //   // Setup .nsr (Networker) files for logfile directories if appropriate.   // NOTE: We must be paranoid; we must not alter files that the user   // has entered or changed!   //   // 2003-09-24 Henrik Grubbström      int verbose;      #define vwerror(ARGS ...) do { \
Roxen.git/server/bin/setup_nsr.pike:15:   void update_nsr_file(string directory)   {    vwerror("Checking for directory %O\n", directory);    Stdio.Stat st = file_stat(directory);    if (!st) {    vwerror("Not found\n");    return;    }       int this_rev = -1; -  if (sscanf("$Rev$", "$""Rev: 1.%d $", this_rev) != 1) { +  if (sscanf("$Revision: 1.2 $", "$""Revision: 1.%d $", this_rev) != 1) {    vwerror("Failed to parse own revision $Rev$\n");    return;    }       string nsr_file = directory + "/.nsr";    st = file_stat(nsr_file);    if (st) {    vwerror("nsr file %O exists.\n", nsr_file);    // File exists. Check if it's an old unmodified file.    string old_content = Stdio.read_file(nsr_file);
Roxen.git/server/bin/setup_nsr.pike:100:    case "logdir":    update_nsr_file(value);    break;    case "debugdir":    update_nsr_file(value);    break;    case "verbose":    verbose++;    break;    case "version": -  write("$Id: setup_nsr.pike,v 1.1 2003/09/24 10:04:20 grubba Exp $\n"); +  write("$Id: setup_nsr.pike,v 1.2 2003/09/24 10:05:28 grubba Exp $\n");    break;    }    }   }