Remove obsolete macro
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jan 2008 12:59:23 +0000 (12:59 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 21 Jan 2008 12:59:23 +0000 (12:59 +0000)
macros/GetARversion.C [deleted file]

diff --git a/macros/GetARversion.C b/macros/GetARversion.C
deleted file mode 100644 (file)
index ac5e2b4..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-const char* GetARversion(){
-//void GetARversion(){
-  // Returns AliRoot version extracted from what is found in the
-  // $ALICE_ROOT/CVS/ directory
-  // 
-  TString vAli;
-  const char* vFile = gSystem->ExpandPathName("$ALICE_ROOT/CVS/Tag");
-  if(gSystem->AccessPathName(vFile)){
-    vAli="HEAD";
-  }else{
-    TFile *fv= TFile::Open("$ALICE_ROOT/CVS/Tag?filetype=raw","READ");
-    Int_t size = fv->GetSize();
-    char *buf = new Char_t[size];
-    memset(buf, '\0', size);
-    fv->Seek(0);
-    if ( fv->ReadBuffer(buf, size) ) {
-      Warning("GetARversion.C","Error reading AliRoot version from file to buffer!");
-      vAli="";
-    }
-    vAli = buf;
-    if(vAli.Contains('\n')) vAli.Remove(vAli.First('\n'));
-    if(vAli.Contains('v')) vAli.Remove(0,vAli.First('v'));
-  }
-  delete vFile;
-  return vAli.Data();
-}
-