18 if (!strcmp(gSystem->GetName(),
"WinNT")) {
19 if ((e = getenv(
"EDITOR")))
20 sprintf(s,
"start %s %s", e, file);
22 sprintf(s,
"start notepad %s", file);
24 if ((e = getenv(
"EDITOR")))
25 sprintf(s,
"%s %s", e, file);
27 sprintf(s,
"xterm -e vi %s &", file);
36 strcpy(s, (!strcmp(gSystem->GetName(),
"WinNT")) ?
"dir /w " :
"ls ");
37 if (path) strcat(s,path);
42 void dir(
char *path=0)
45 strcpy(s,(!strcmp(gSystem->GetName(),
"WinNT")) ?
"dir " :
"ls -l ");
46 if (path) strcat(s,path);
53 return gSystem->WorkingDirectory();
57 const char *cd(
char *path=0)
60 gSystem->ChangeDirectory(path);
66 void bexec2(
char *macro)
68 printf(
"in bexec dir=%s\n",pwd());
69 if (gROOT->IsBatch()) printf(
"Processing benchmark: %s\n",macro);
70 TPaveText *summary = (TPaveText*)bench->GetPrimitive(
"TPave");
71 TText *tmacro = summary->GetLineWith(macro);
72 if (tmacro) tmacro->SetTextColor(4);
73 bench->Modified(); bench->Update();
77 TPaveText *summary2 = (TPaveText*)bench->GetPrimitive(
"TPave");
78 TText *tmacro2 = summary2->GetLineWith(macro);
79 if (tmacro2) tmacro2->SetTextColor(2);
80 bench->Modified(); bench->Update();