Logo coherent WaveBurst  
Library Reference Guide
Logo
cwb_publish_ced.C
Go to the documentation of this file.
1 /*
2 # Copyright (C) 2019 Gabriele Vedovato
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17 
18 
19 // obsolete
20 
21 {
23  TB.checkFile(gSystem->Getenv("CWB_ROOTLOGON_FILE"));
24  TB.checkFile(gSystem->Getenv("CWB_PARAMETERS_FILE"));
25  TB.checkFile(gSystem->Getenv("CWB_UPARAMETERS_FILE"));
26 
27 
28  // data label
29  char www_label[512];
30  TObjArray* token = TString(work_dir).Tokenize(TString("/"));
31  sprintf(www_label,((TObjString*)token->At(token->GetEntries()-1))->GetString().Data());
32 
33  char cmd[256];
34  sprintf(cmd,"mkdir %s/%s",www_dir,www_label);
35  cout << endl;
36  cout << cmd << endl;
37  gSystem->Exec(cmd);
38 
39  sprintf(cmd,"ln -s %s/%s %s/%s",work_dir,ced_dir,www_dir,www_label);
40  cout << cmd << endl;
41  cout << endl;
42  gSystem->Exec(cmd);
43 
44  exit(0);
45 }
TObjArray * token
char cmd[256]
char www_label[512]
TString("c")
char www_dir[512]
Definition: test_config1.C:157
CWB::Toolbox TB
static bool checkFile(TString fName, bool question=false, TString message="")
Definition: Toolbox.cc:4670
sprintf(www_label,((TObjString *) token->At(token->GetEntries() -1)) ->GetString().Data())
char ced_dir[512]
Definition: test_config1.C:154
exit(0)
char work_dir[512]
Definition: test_config1.C:143