Changeset 1283 for trunk/MagicSoft/Mars/macros
- Timestamp:
- 04/22/02 11:28:38 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/rootlogon.C
r1058 r1283 23 23 \* ======================================================================== */ 24 24 25 Bool_t isloaded() 26 { 27 TString str = gSystem->GetLibraries("*/mars.so"); 25 28 26 void rootlogon() 29 return !str.IsNull(); 30 } 31 32 void unload() 27 33 { 28 cout << endl; 34 if (!isloaded()) 35 return; 36 37 cout << "Unloading 'mars.so'... " << flush; 38 if (gSystem->Unload("mars.so")) 39 cout << "error." << endl; 40 else 41 cout << "done." << endl << endl; 42 } 43 44 void load() 45 { 46 if (isloaded()) 47 return; 29 48 30 49 cout << "Loading 'mars.so'... " << flush; … … 40 59 41 60 cout << endl; 61 } 62 63 void make() 64 { 65 unload(); 66 67 if (gSystem->Exec("make")) 68 { 69 cout << "Error calling make..." << endl; 70 return; 71 } 72 73 load(); 74 } 75 76 void rootlogon() 77 { 78 cout << endl; 79 80 load(); 42 81 43 82 cout << "Welcome to the Mars Root environment." << endl; … … 45 84 cout << endl; 46 85 } 47
Note:
See TracChangeset
for help on using the changeset viewer.