14 static const string Url =
"$HeadURL$";
16 static const char*
CITATION =
"Ferland, G. J., Korista, K. T., Verner, D. A., Ferguson, J. W., Kingdon, J. B., & Verner, E. M. 1998, PASP, 110, 761";
17 static const char*
CITATION_LATEX =
"\\bibitem[Ferland et al.(1998)]{1998PASP..110..761F} Ferland, G.~J., Korista, K.~T., Verner, D.~A., Ferguson, J.~W., Kingdon, J.~B., \\& Verner, E.~M.\\ 1998, \\pasp, 110, 761";
26 static const char chMonth[12][4] =
27 {
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec" };
69 if( Part.size() >= 3 )
74 string Branch = Part[Part.size()-3];
76 bool lgReleaseTag = (
Url.find(
"/tags/release/") != string::npos );
77 bool lgPatchTag = (
Url.find(
"/tags/patch_versions/") != string::npos );
78 bool lgDevelopTag = (
Url.find(
"/tags/develop/") != string::npos );
80 bool lgReleaseBranch = (
Url.find(
"/branches/") != string::npos &&
81 Branch.size() == 10 && Branch[0] ==
'c' &&
82 Branch.find(
"_branch") != string::npos );
84 bool lgReleaseChk = ( lgReleaseTag || lgPatchTag );
89 string::size_type ptr;
90 if( lgDevelopTag && ( ptr = Branch.find(
"_rc" ) ) != string::npos )
92 sscanf( Branch.substr( ptr+3 ).c_str(),
"%ld", &nBetaVerChk );
96 int nMajorLevel=0, nMinorLevel=0, nPatchLevel=0;
98 if( lgReleaseBranch || lgReleaseChk || nBetaVerChk > 0 )
101 sscanf( Branch.substr(1,2).c_str(),
"%d", &nMajorLevel );
103 fprintf(
ioQQQ,
"PROBLEM - CLD_MAJOR mismatch, please check version.h\n" );
106 if( lgReleaseChk || nBetaVerChk > 0 )
109 sscanf( Branch.substr(4,2).c_str(),
"%d", &nMinorLevel );
111 fprintf(
ioQQQ,
"PROBLEM - CLD_MINOR mismatch, please check version.h\n" );
117 sscanf( Branch.substr(9,2).c_str(),
"%d", &nPatchLevel );
119 fprintf(
ioQQQ,
"PROBLEM - CLD_PATCH mismatch, please check version.h\n" );
121 if( nPatchLevel == 0 )
125 if( nBetaVerChk > 0 )
128 fprintf(
ioQQQ,
"PROBLEM - nBetaVer mismatch, please check version.h\n" );
132 fprintf(
ioQQQ,
"PROBLEM - lgRelease setting wrong, please check version.h\n" );
136 if(
sizeof(
long) == 4 )
137 strncpy( mode,
"ILP32", 6 );
138 else if(
sizeof(
long) == 8 )
139 strncpy( mode,
"LP64", 6 );
141 strncpy( mode,
"?????", 6 );
145 "cdInit compiled on %s in OS %s using the %s %i compiler in %s mode.",