Commit 649270a0 authored by Frank Siegert's avatar Frank Siegert

Migrate SVN_Info technology to Git(_Info).

parent 5faf01f5
pkglib_LTLIBRARIES = libAhadicDecays.la
SVNTAG = AHADIC++/Decays
include ../../svn.make
GITTAG = AHADIC++/Decays
include ../../git.make
libAhadicDecays_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Cluster_Decayer.C \
Cluster_Splitter.C
......
pkglib_LTLIBRARIES = libAhadicFormation.la
SVNTAG = AHADIC++/Formation
include ../../svn.make
GITTAG = AHADIC++/Formation
include ../../git.make
libAhadicFormation_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Beam_Particles_Shifter.C \
Singlet_Former.C \
Singlet_Checker.C \
......
pkglib_LTLIBRARIES = libAhadicMain.la
SVNTAG = AHADIC++/Main
include ../../svn.make
GITTAG = AHADIC++/Main
include ../../git.make
libAhadicMain_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Ahadic.C
localincdir = $(pkgincludedir)/AHADIC++/Main
......
pkglib_LTLIBRARIES = libAhadicTools.la
SVNTAG = AHADIC++/Tools
include ../../svn.make
GITTAG = AHADIC++/Tools
include ../../git.make
libAhadicTools_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Proto_Particle.C \
Cluster.C \
Constituents.C \
......
......@@ -2,10 +2,10 @@ SUBDIRS = Zfunctions
pkglib_LTLIBRARIES = libAmplitude.la
SVNTAG = AMEGIC++/Amplitude
include ../../svn.make
GITTAG = AMEGIC++/Amplitude
include ../../git.make
libAmplitude_la_SOURCES = SVN_Info.C \
libAmplitude_la_SOURCES = Git_Info.C \
Single_Vertex.C Vertex.C \
CFColor.C Amplitude_Base.C \
Single_Amplitude.C Amplitude_Manipulator.C \
......
pkglib_LTLIBRARIES = libZfunctions.la
SVNTAG = AMEGIC++/Amplitude/Zfunctions
include ../../../svn.make
GITTAG = AMEGIC++/Amplitude/Zfunctions
include ../../../git.make
libZfunctions_la_SOURCES = SVN_Info.C Basic_Func.C Basic_Sfuncs.C Basic_Pfunc.C \
libZfunctions_la_SOURCES = Git_Info.C Basic_Func.C Basic_Sfuncs.C Basic_Pfunc.C \
Basic_Mfunc.C Basic_MassTermfunc.C \
Basic_Vfunc.C Basic_Xfunc.C Basic_Yfunc.C \
Basic_Zfunc.C \
......
pkglib_LTLIBRARIES = libDipoleSubtraction.la
SVNTAG = AMEGIC++/DipoleSubtraction
include ../../svn.make
GITTAG = AMEGIC++/DipoleSubtraction
include ../../git.make
libDipoleSubtraction_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
DipoleSplitting_Base.C \
FF_DipoleSplitting.C \
FI_DipoleSplitting.C \
......
pkglib_LTLIBRARIES = libAmegic.la
SVNTAG = AMEGIC++/Main
include ../../svn.make
GITTAG = AMEGIC++/Main
include ../../git.make
libAmegic_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
ColorSC.C \
Helicity.C Topology.C Polarisation.C Pol_Info.C Point.C \
Process_Tags.C Amegic_Base.C Process_Base.C \
......
pkglib_LTLIBRARIES = libAmegicPSGen.la
SVNTAG = AMEGIC++/Phasespace
include ../../svn.make
GITTAG = AMEGIC++/Phasespace
include ../../git.make
libAmegicPSGen_la_SOURCES = SVN_Info.C \
libAmegicPSGen_la_SOURCES = Git_Info.C \
Phase_Space_Generator.C Channel_Generator_Base.C \
Channel_Generator.C Channel_Generator_NPV.C \
Channel_Generator3V.C Channel_Generator3_NPV.C \
......
pkglib_LTLIBRARIES = libString.la
SVNTAG = AMEGIC++/String
include ../../svn.make
GITTAG = AMEGIC++/String
include ../../git.make
libString_la_SOURCES = SVN_Info.C \
libString_la_SOURCES = Git_Info.C \
String_Handler.C String_Generator.C \
String_Tree.C String_Output.C \
MyString.C String_Library.C
......
pkglib_LTLIBRARIES = libAmisic.la
SVNTAG = AMISIC++/Main
include ../../svn.make
GITTAG = AMISIC++/Main
include ../../git.make
libAmisic_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
MI_Base.C \
Amisic.C
localinc_HEADERS = \
......
pkglib_LTLIBRARIES = libAmisicModel.la
SVNTAG = AMISIC++/Model
include ../../svn.make
GITTAG = AMISIC++/Model
include ../../git.make
libAmisicModel_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Grid_Creator.C \
Profile_Function_Base.C \
Profile_Function.C \
......
pkglib_LTLIBRARIES = libAmisicTools.la
SVNTAG = AMISIC++/Tools
include ../../svn.make
GITTAG = AMISIC++/Tools
include ../../git.make
libAmisicTools_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Amisic_Histogram.C \
Fixed_Variable_Channel.C \
MPI_Scale_Setter.C \
......
SVNTAG = ATOOLS/Math
include ../../svn.make
GITTAG = ATOOLS/Math
include ../../git.make
pkglib_LTLIBRARIES = libToolsMath.la
libToolsMath_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
MathTools.C \
Term.C \
Algebra_Interpreter.C \
......
#ifndef ATOOLS_Org_SVN_Info_H
#define ATOOLS_Org_SVN_Info_H
#ifndef ATOOLS_Org_Git_Info_H
#define ATOOLS_Org_Git_Info_H
#include <string>
#include <map>
namespace ATOOLS {
class SVN_Info {
class Git_Info {
private:
std::string m_name, m_branch, m_revision, m_checksum;
static std::map<const std::string,const SVN_Info*> *s_objects;
static std::map<const std::string,const Git_Info*> *s_objects;
public:
SVN_Info(const std::string &name,
Git_Info(const std::string &name,
const std::string &branch,
const std::string &revision,
const std::string &checksum);
~SVN_Info();
~Git_Info();
inline const std::string &Name() const { return m_name; }
inline const std::string &Branch() const { return m_branch; }
inline const std::string &Revision() const { return m_revision; }
inline const std::string &Checksum() const { return m_checksum; }
inline static const std::map<const std::string,const SVN_Info*> *
inline static const std::map<const std::string,const Git_Info*> *
Infos() { return s_objects; }
};// end of class SVN_Info
};// end of class Git_Info
}// end of namespace ATOOLS
......
......@@ -9,11 +9,11 @@ endif
MD5_EXCLUDE = CXXFLAGS_PACKAGES.H CXXFLAGS.H
SVNTAG = ATOOLS/Org
include ../../svn.make
GITTAG = ATOOLS/Org
include ../../git.make
libToolsOrg_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
MyStrStream.C \
Return_Value.C \
Shell_Tools.C \
......@@ -44,7 +44,7 @@ libToolsOrg_la_SOURCES = \
localinc_HEADERS = \
CXXFLAGS_PACKAGES.H \
CXXFLAGS.H \
SVN_Info.H \
Git_Info.H \
Return_Value.H \
Smart_Pointer.H \
Smart_Pointer.C \
......
......@@ -12,7 +12,7 @@
#include "ATOOLS/Org/CXXFLAGS.H"
#include "ATOOLS/Org/My_MPI.H"
#include "ATOOLS/Org/Data_Writer.H"
#include "ATOOLS/Org/SVN_Info.H"
#include "ATOOLS/Org/Git_Info.H"
#include "ATOOLS/Org/binreloc.h"
#include <stdlib.h>
#include <unistd.h>
......@@ -73,10 +73,10 @@ int getncpu()
using namespace ATOOLS;
using namespace std;
std::map<const std::string,const SVN_Info*> *
ATOOLS::SVN_Info::s_objects=NULL;
std::map<const std::string,const Git_Info*> *
ATOOLS::Git_Info::s_objects=NULL;
SVN_Info::SVN_Info(const std::string &name,
Git_Info::Git_Info(const std::string &name,
const std::string &branch,
const std::string &revision,
const std::string &checksum):
......@@ -85,15 +85,15 @@ SVN_Info::SVN_Info(const std::string &name,
{
static bool init(false);
if (!init || s_objects==NULL) {
s_objects = new std::map<const std::string,const SVN_Info*>();
s_objects = new std::map<const std::string,const Git_Info*>();
init=true;
}
s_objects->insert(make_pair(name,this));
}
SVN_Info::~SVN_Info()
Git_Info::~Git_Info()
{
for (std::map<const std::string,const SVN_Info*>::iterator
for (std::map<const std::string,const Git_Info*>::iterator
it(s_objects->begin());it!=s_objects->end();++it)
if (it->second==this) {
s_objects->erase(it);
......@@ -414,7 +414,7 @@ void Run_Parameter::Gen::WriteCitationInfo()
}
f<<"\n\\end{document}\n\n"<<std::endl;
f<<"%% You have used the following configuration:\n";
PrintSVNVersion(f,1,"%% ");
PrintGitVersion(f,1,"%% ");
std::cout<<std::string(72,'-')<<"\n"
<<om::bold<<"Please cite the publications listed in '"
<<om::red<<refname<<om::reset<<om::bold<<"'."<<om::reset
......@@ -441,17 +441,17 @@ std::string Run_Parameter::Gen::Variable(const std::string &key,const std::strin
return m_variables.find(key)!=m_variables.end()?m_variables[key]:def;
}
void Run_Parameter::Gen::PrintSVNVersion(std::ostream &str,const int mode,
void Run_Parameter::Gen::PrintGitVersion(std::ostream &str,const int mode,
const std::string &prefix)
{
const std::map<const std::string,const SVN_Info*> &info(*SVN_Info::Infos());
if (info.empty()) THROW(fatal_error,"No SVN information");
const std::map<const std::string,const Git_Info*> &info(*Git_Info::Infos());
if (info.empty()) THROW(fatal_error,"No Git information");
std::string branch(info.begin()->second->Branch());
std::string revision(info.begin()->second->Revision());
str<<prefix<<"SVN branch "<<branch<<", revision "<<revision;
str<<prefix<<"Git branch "<<branch<<", revision "<<revision;
if (mode&1) str<<" {\n";
else str<<"."<<std::endl;
for (std::map<const std::string,const SVN_Info*>::const_iterator
for (std::map<const std::string,const Git_Info*>::const_iterator
iit(info.begin());iit!=info.end();++iit) {
if (mode&1) str<<prefix<<" "<<iit->second->Checksum()
<<" "<<iit->second->Name()<<"\n";
......
......@@ -80,7 +80,7 @@ namespace ATOOLS {
inline const std::vector<std::string> &Citations() { return m_cites; }
void AddCitation(const size_t &level,const std::string &cite);
void WriteCitationInfo();
void PrintSVNVersion(std::ostream &str,const int mode=0,
void PrintGitVersion(std::ostream &str,const int mode=0,
const std::string &prefix="");
inline double Accu() { return m_accu; }
......
SVNTAG = ATOOLS/Phys
include ../../svn.make
GITTAG = ATOOLS/Phys
include ../../git.make
pkglib_LTLIBRARIES = libToolsPhys.la
libToolsPhys_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Flavour.C \
Ordering.C \
Particle.C \
......
AUTOMAKE_OPTIONS = subdir-objects
SVNTAG = AddOns/Higgs
include ../../svn.make
GITTAG = AddOns/Higgs
include ../../git.make
pkglib_LTLIBRARIES = libSherpaHiggs.la
libSherpaHiggs_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
dilog.C \
Wrappers.C \
Higgs_Tree.C \
......
SVNTAG = AddOns/NNLO
include ../../svn.make
GITTAG = AddOns/NNLO
include ../../git.make
pkglib_LTLIBRARIES = libNNLOqT.la
libNNLOqT_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
polylog.c \
Tools.C \
QT_Selector.C \
......
pkglib_LTLIBRARIES = libBeam.la
SVNTAG = BEAM/Main
include ../../svn.make
GITTAG = BEAM/Main
include ../../git.make
libBeam_la_SOURCES = SVN_Info.C \
libBeam_la_SOURCES = Git_Info.C \
Beam_Base.C \
Monochromatic.C \
Laser_Backscattering.C \
......
pkglib_LTLIBRARIES = libComixAmplitude.la
SVNTAG = COMIX/Amplitude
include ../../svn.make
GITTAG = COMIX/Amplitude
include ../../git.make
libComixAmplitude_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Amplitude.C
localinc_HEADERS = \
......
pkglib_LTLIBRARIES = libComix.la
SVNTAG = COMIX/Main
include ../../svn.make
GITTAG = COMIX/Main
include ../../git.make
libComix_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Process_Base.C \
Process_Group.C \
Single_Process.C \
......
pkglib_LTLIBRARIES = libComixPhasespace.la
SVNTAG = COMIX/Phasespace
include ../../svn.make
GITTAG = COMIX/Phasespace
include ../../git.make
libComixPhasespace_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
PS_Info.C \
PS_Vertex.C \
PS_Current.C \
......
pkglib_LTLIBRARIES = libCSCalculators.la
SVNTAG = CSSHOWER++/Calculators
include ../../svn.make
GITTAG = CSSHOWER++/Calculators
include ../../git.make
libCSCalculators_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
CF_QCD.C \
CF_QED.C \
CF_EW_FFV.C \
......
pkglib_LTLIBRARIES = libCSMain.la
SVNTAG = CSSHOWER++/Main
include ../../svn.make
GITTAG = CSSHOWER++/Main
include ../../git.make
libCSMain_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
CS_Cluster_Definitions.C \
CS_Shower.C
......
pkglib_LTLIBRARIES = libCSShowers.la
SVNTAG = CSSHOWER++/Showers
include ../../svn.make
GITTAG = CSSHOWER++/Showers
include ../../git.make
libCSShowers_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Splitting_Function_Base.C \
Splitting_Function_Group.C \
Sudakov.C \
......
pkglib_LTLIBRARIES = libCSTools.la
SVNTAG = CSSHOWER++/Tools
include ../../svn.make
GITTAG = CSSHOWER++/Tools
include ../../git.make
libCSTools_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Parton.C \
Singlet.C
......
pkglib_LTLIBRARIES = libDIMGauge.la
SVNTAG = DIM/Gauge
include ../../svn.make
GITTAG = DIM/Gauge
include ../../git.make
libDIMGauge_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
GGG.C \
GQQ.C \
QQG.C
pkglib_LTLIBRARIES = libDIMLorentz.la
SVNTAG = DIM/Lorentz
include ../../svn.make
GITTAG = DIM/Lorentz
include ../../git.make
libDIMLorentz_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
FFV_FF.C \
FFV_FI.C \
FFV_IF.C \
......
pkglib_LTLIBRARIES = libDIMMain.la
SVNTAG = DIM/Main
include ../../svn.make
GITTAG = DIM/Main
include ../../git.make
libDIMMain_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Gamma.C \
MCatNLO.C
......
pkglib_LTLIBRARIES = libDIMShower.la
SVNTAG = DIM/Shower
include ../../svn.make
GITTAG = DIM/Shower
include ../../git.make
libDIMShower_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Gauge.C \
Lorentz.C \
Kernel.C \
......
pkglib_LTLIBRARIES = libDIMTools.la
SVNTAG = DIM/Tools
include ../../svn.make
GITTAG = DIM/Tools
include ../../git.make
libDIMTools_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Color.C \
Parton.C \
Splitting.C \
......
pkglib_LTLIBRARIES = libDireGauge.la
SVNTAG = DIRE/Gauge
include ../../svn.make
GITTAG = DIRE/Gauge
include ../../git.make
libDireGauge_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
GGG.C \
GQQ.C \
QQG.C \
......
pkglib_LTLIBRARIES = libDireLorentz.la
SVNTAG = DIRE/Lorentz
include ../../svn.make
GITTAG = DIRE/Lorentz
include ../../git.make
libDireLorentz_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
FFV_FF.C \
FFV_FI.C \
FFV_IF.C \
......
pkglib_LTLIBRARIES = libDireMain.la
SVNTAG = DIRE/Main
include ../../svn.make
GITTAG = DIRE/Main
include ../../git.make
libDireMain_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Jet_Criterion.C \
Dire.C
pkglib_LTLIBRARIES = libDireShower.la
SVNTAG = DIRE/Shower
include ../../svn.make
GITTAG = DIRE/Shower
include ../../git.make
libDireShower_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Gauge.C \
Lorentz.C \
Kernel.C \
......
pkglib_LTLIBRARIES = libDireTools.la
SVNTAG = DIRE/Tools
include ../../svn.make
GITTAG = DIRE/Tools
include ../../git.make
libDireTools_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Color.C \
Parton.C \
Splitting.C \
......
pkglib_LTLIBRARIES = libExtAmp.la
SVNTAG = EXTAMP
include ../svn.make
GITTAG = EXTAMP
include ../git.make
libExtAmp_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
External_ME_Interface.C \
Process.C \
Born_Process.C \
......
pkglib_LTLIBRARIES = libExtraXS.la
SVNTAG = EXTRA_XS/Main
include ../../svn.make
GITTAG = EXTRA_XS/Main
include ../../git.make
libExtraXS_la_SOURCES = \
SVN_Info.C \
Git_Info.C \
Single_Process.C \
Process_Group.C \
Simple_XS.C \
......
pkglib_LTLIBRARIES = libExtraXSNLO.la
SVNTAG = EXTRA_XS/NLO
include ../../svn.make
GITTAG = EXTRA_XS/NLO
include ../../git.make
libExtraXSNLO_la_SOURCES = SVN_Info.C \
libExtraXSNLO_la_SOURCES = Git_Info.C \
Dummy_QCD_Virtual.C \
DY_QCD_Virtual.C \
Higgs_QCD_Virtual.C \
......
pkglib_LTLIBRARIES = libExtraXS2_2.la
SVNTAG = EXTRA_XS/Two2Two
include ../../svn.make
GITTAG = EXTRA_XS/Two2Two