mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
git version history
This commit is contained in:
parent
4677f19437
commit
3d9071a0bb
@ -1,4 +1,11 @@
|
|||||||
# Script to create svnInfo.txt files and export software
|
# Script to create gitInfo.txt files and export software
|
||||||
|
|
||||||
|
#git clone git@gitorious.psi.ch:sls_det_software/sls_detectors_package.git slsDetectorsPackage
|
||||||
|
#cd slsDetectorsPackage
|
||||||
|
#git clone git@gitorious.psi.ch:sls_det_software/sls_detector_software.git slsDetectorSoftware
|
||||||
|
#git clone git@gitorious.psi.ch:sls_det_software/sls_detector_gui.git slsDetectorGui
|
||||||
|
#git clone git@gitorious.psi.ch:sls_det_software/sls_receiver_software.git slsReceiverSoftware
|
||||||
|
#git clone git@gitorious.psi.ch:sls_det_software/calibration_wizards.git calibrationWizards
|
||||||
|
|
||||||
#folders
|
#folders
|
||||||
MAINDIR=slsDetectorsPackage
|
MAINDIR=slsDetectorsPackage
|
||||||
@ -7,47 +14,138 @@ RXRDIR=slsReceiverSoftware
|
|||||||
GUIDIR=slsDetectorGui
|
GUIDIR=slsDetectorGui
|
||||||
CALWIZDIR=calibrationWizards
|
CALWIZDIR=calibrationWizards
|
||||||
|
|
||||||
SVNPATH=file:///afs/psi.ch/project/sls_det_software/svn
|
#paths
|
||||||
MAINDIRSVN=$SVNPATH/$MAINDIR
|
WD=$PWD
|
||||||
LIBDIRSVN=$SVNPATH/$LIBDIR
|
LIBPATH=$WD/$LIBDIR
|
||||||
RXRDIRSVN=$SVNPATH/$RXRDIR
|
RXRPATH=$WD/$RXRDIR
|
||||||
GUIDIRSVN=$SVNPATH/$GUIDIR
|
GUIPATH=$WD/$GUIDIR
|
||||||
CALWIZSVN=$SVNPATH/$GUIDIR
|
CALWIZPATH=$WD/$CALWIZDIR
|
||||||
|
|
||||||
|
#commands to create gitInfo.txt, but these commands get executed before entering directory
|
||||||
|
#GITREPO=`git remote -v | cut -d' ' -f1`
|
||||||
|
#BRANCH=`git branch -v | grep '*' | cut -d' ' -f2`
|
||||||
|
#REPUID=`git log --pretty=format:"%H" -1`
|
||||||
|
#AUTH1=`git log --pretty=format:"%cn" -1 | cut -d' ' -f1`
|
||||||
|
#AUTH2=`git log --pretty=format:"%cn" -1 | cut -d' ' -f2`
|
||||||
|
#FOLDERREV=`git log --oneline . | wc -l` #used for all the individual server folders
|
||||||
|
#REV=`git log --oneline | wc -l`
|
||||||
|
#RDATE=`git log --pretty=format:"%ci" -1`
|
||||||
|
|
||||||
|
|
||||||
#export
|
GITREPO1='git remote -v'
|
||||||
#svn export --force $MAINDIRSVN
|
GITREPO2=" | grep \"fetch\" | cut -d' ' -f1"
|
||||||
#cd $MAINDIR
|
BRANCH1='git branch -v'
|
||||||
#svn export --force $LIBDIRSVN
|
BRANCH2=" | grep '*' | cut -d' ' -f2"
|
||||||
#svn export --force $RXRDIRSVN
|
REPUID1='git log --pretty=format:"%H" -1'
|
||||||
#svn export --force $GUIDIRSVN
|
AUTH1_1='git log --pretty=format:"%cn" -1'
|
||||||
#svn export --force $CALWIZSVN
|
AUTH1_2=" | cut -d' ' -f1"
|
||||||
|
AUTH2_1='git log --pretty=format:"%cn" -1'
|
||||||
|
AUTH2_2=" | cut -d' ' -f2"
|
||||||
|
FOLDERREV1='git log --oneline . ' #used for all the individual server folders
|
||||||
|
FOLDERREV2=" | wc -l" #used for all the individual server folders
|
||||||
|
REV1='git log --oneline '
|
||||||
|
REV2=" | wc -l"
|
||||||
|
RDATE1='git log --pretty=format:"%ci" -1'
|
||||||
|
|
||||||
|
|
||||||
#create svnInfo.txt
|
|
||||||
svn info $LIBDIRSVN > $LIBDIR/svnInfo.txt
|
|
||||||
./genVersionHeader.sh $LIBDIR/svnInfo.txt $LIBDIR/slsDetector/svnInfoLibTmp.h $LIBDIR/slsDetector/svnInfoLib.h
|
|
||||||
|
|
||||||
svn info $LIBDIRSVN/mythenDetectorServer > $LIBDIR/mythenDetectorServer/svnInfo.txt
|
#create gitInfo.txt
|
||||||
./genVersionHeader.sh $LIBDIR/mythenDetectorServer/svnInfo.txt $LIBDIR/mythenDetectorServer/svnInfoMythenTmp.h $LIBDIR/mythenDetectorServer/svnInfoMythen.h
|
#have to go into path to execute some git commands, different variables are upto Revision
|
||||||
|
|
||||||
svn info $LIBDIRSVN/gotthardDetectorServer > $LIBDIR/gotthardDetectorServer/svnInfo.txt
|
cd $LIBPATH
|
||||||
./genVersionHeader.sh $LIBDIR/gotthardDetectorServer/svnInfo.txt $LIBDIR/gotthardDetectorServer/svnInfoGotthardTmp.h $LIBDIR/gotthardDetectorServer/svnInfoGotthard.h
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
REV=`eval $REV1 $REV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${LIBDIR} $'\n'URL: ${GITREPO} $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${REV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
svn info $LIBDIRSVN/moenchDetectorServer > $LIBDIR/moenchDetectorServer/svnInfo.txt
|
cd $RXRPATH
|
||||||
./genVersionHeader.sh $LIBDIR/moenchDetectorServer/svnInfo.txt $LIBDIR/moenchDetectorServer/svnInfoMoenchTmp.h $LIBDIR/moenchDetectorServer/svnInfoMoench.h
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
REV=`eval $REV1 $REV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${RXRDIR} $'\n'URL: ${GITREPO} $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${REV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
svn info $LIBDIRSVN/eigerDetectorServer > $LIBDIR/eigerDetectorServer/svnInfo.txt
|
cd $GUIPATH
|
||||||
./genVersionHeader.sh $LIBDIR/eigerDetectorServer/svnInfo.txt $LIBDIR/eigerDetectorServer/svnInfoEigerTmp.h $LIBDIR/eigerDetectorServer/svnInfoEiger.h
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
REV=`eval $REV1 $REV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${GUIDIR} $'\n'URL: ${GITREPO} $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${REV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
|
cd $CALWIZPATH
|
||||||
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
REV=`eval $REV1 $REV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${CALWIZDIR} $'\n'URL: ${GITREPO} $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${REV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
|
cd $LIBPATH/mythenDetectorServer
|
||||||
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
FOLDERREV=`eval $FOLDERREV1 $FOLDERREV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${LIBDIR}/mythenDetectorServer $'\n'URL: ${GITREPO}/mythenDetectorServer $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${FOLDERREV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
|
cd $LIBPATH/gotthardDetectorServer
|
||||||
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
FOLDERREV=`eval $FOLDERREV1 $FOLDERREV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${LIBDIR}/gotthardDetectorServer $'\n'URL: ${GITREPO}/gotthardDetectorServer $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${FOLDERREV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
|
cd $LIBPATH/moenchDetectorServer
|
||||||
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
FOLDERREV=`eval $FOLDERREV1 $FOLDERREV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${LIBDIR}/moenchDetectorServer $'\n'URL: ${GITREPO}/moenchDetectorServer $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${FOLDERREV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
|
cd $LIBPATH/eigerDetectorServer
|
||||||
|
GITREPO=`eval $GITREPO1 $GITREPO2`
|
||||||
|
BRANCH=`eval $BRANCH1 $BRANCH2`
|
||||||
|
REPUID=`eval $REPUID1`
|
||||||
|
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
||||||
|
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
||||||
|
FOLDERREV=`eval $FOLDERREV1 $FOLDERREV2`
|
||||||
|
RDATE=`eval $RDATE1`
|
||||||
|
echo Path: ${MAINDIR}/${LIBDIR}/eigerDetectorServer $'\n'URL: ${GITREPO}/eigerDetectorServer $'\n'Repository Root: ${GITREPO} $'\n'Repsitory UUID: ${REPUID} $'\n'Revision: ${FOLDERREV} $'\n'Branch: ${BRANCH} $'\n'Last Changed Author: ${AUTH1}_${AUTH2} $'\n'Last Changed Rev: ${REV} $'\n'Last Changed Date: ${RDATE} > gitInfo.txt
|
||||||
|
|
||||||
|
|
||||||
svn info $RXRDIRSVN/includes > $RXRDIR/includes/svnInfo.txt
|
|
||||||
./genVersionHeader.sh $RXRDIR/includes/svnInfo.txt $RXRDIR/includes/svnInfoReceiverTmp.h $RXRDIR/includes/svnInfoReceiver.h
|
|
||||||
|
|
||||||
svn info $GUIDIRSVN > $GUIDIR/svnInfo.txt
|
|
||||||
./genVersionHeader.sh $GUIDIR/svnInfo.txt $GUIDIR/include/svnInfoGuiTmp.h $GUIDIR/include/svnInfoGui.h
|
|
||||||
|
|
||||||
svn info $CALWIZSVN > $CALWIZDIR/svnInfo.txt
|
|
||||||
./genVersionHeader.sh $CALWIZDIR/svnInfo.txt $CALWIZDIR/svnInfoCalWizTmp.h $CALWIZDIR/svnInfoCalWiz.h
|
#creating the header files
|
||||||
|
cd $WD
|
||||||
|
./genVersionHeader.sh $LIBDIR/gitInfo.txt $LIBDIR/slsDetector/gitInfoLibTmp.h $LIBDIR/slsDetector/gitInfoLib.h
|
||||||
|
./genVersionHeader.sh $RXRDIR/gitInfo.txt $RXRDIR/includes/gitInfoReceiverTmp.h $RXRDIR/includes/gitInfoReceiver.h
|
||||||
|
./genVersionHeader.sh $GUIDIR/gitInfo.txt $GUIDIR/include/gitInfoGuiTmp.h $GUIDIR/include/gitInfoGui.h
|
||||||
|
./genVersionHeader.sh $CALWIZDIR/gitInfo.txt $CALWIZDIR/gitInfoCalWizTmp.h $CALWIZDIR/gitInfoCalWiz.h
|
||||||
|
./genVersionHeader.sh $LIBDIR/mythenDetectorServer/gitInfo.txt $LIBDIR/mythenDetectorServer/gitInfoMythenTmp.h $LIBDIR/mythenDetectorServer/gitInfoMythen.h
|
||||||
|
./genVersionHeader.sh $LIBDIR/gotthardDetectorServer/gitInfo.txt $LIBDIR/gotthardDetectorServer/gitInfoGotthardTmp.h $LIBDIR/gotthardDetectorServer/gitInfoGotthard.h
|
||||||
|
./genVersionHeader.sh $LIBDIR/moenchDetectorServer/gitInfo.txt $LIBDIR/moenchDetectorServer/gitInfoMoenchTmp.h $LIBDIR/moenchDetectorServer/gitInfoMoench.h
|
||||||
|
./genVersionHeader.sh $LIBDIR/eigerDetectorServer/gitInfo.txt $LIBDIR/eigerDetectorServer/gitInfoEigerTmp.h $LIBDIR/eigerDetectorServer/gitInfoEiger.h
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user