fixed makefile and included correct versioning while compiling

This commit is contained in:
Dhanya Maliakal
2017-06-28 18:13:47 +02:00
parent 8992d51787
commit 7990dd6f77
4 changed files with 19 additions and 20 deletions

View File

@ -1,7 +1,7 @@
MAINDIR=slsDetectorsPackage
SPECDIR=slsDetectorSoftware
TMPFILE=gitInfoLibTmp.h
INCLFILE=gitInfoLib.h
TMPFILE=slsDetector/gitInfoLibTmp.h
INCLFILE=slsDetector/gitInfoLib.h
WD=$PWD
GITREPO1='git remote -v'
@ -28,7 +28,7 @@ REV=`eval $REV1 $REV2`
FOLDERREV=`eval $FOLDERREV1 $FOLDERREV2`
RDATE=`eval $RDATE1`
echo Path: ${MAINDIR}/${SPECDIR} $'\n'URL: ${GITREPO} $'\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 $WD
cd ..
./genVersionHeader.sh $SPECDIR/gitInfo.txt $SPECDIR/$TMPFILE $SPECDIR/$INCLFILE
echo "Revision Updated"
cd $WD