mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
some more changes to make file for automatic versioning, but changes to cpp file does not affect make, need to include that
This commit is contained in:
parent
cf0ef68cda
commit
ef9fd77850
@ -55,7 +55,7 @@ doc:
|
|||||||
htmldoc:
|
htmldoc:
|
||||||
cd manual && $(MAKE) html DESTDIR=$(DOCDIR)
|
cd manual && $(MAKE) html DESTDIR=$(DOCDIR)
|
||||||
|
|
||||||
$(PROG): Makefile slsDetectorGui.pro $(DIR)
|
$(PROG): Makefile $(DIR)
|
||||||
$(MAKE) -f Makefile.gui SLSDETLIB=$(DESTDIR) DESTDIR=$(DESTDIR) SUBLIBS='$(LDFLAGDET)' INCLUDES='$(INCLUDES)' LIBDIR='$(LIBDIR)'
|
$(MAKE) -f Makefile.gui SLSDETLIB=$(DESTDIR) DESTDIR=$(DESTDIR) SUBLIBS='$(LDFLAGDET)' INCLUDES='$(INCLUDES)' LIBDIR='$(LIBDIR)'
|
||||||
|
|
||||||
guiclient:
|
guiclient:
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
Path: slsDetectorsPackage/slsDetectorGui
|
Path: slsDetectorsPackage/slsDetectorGui
|
||||||
URL: origin git@git.psi.ch:sls_detectors_software/sls_detector_gui.git
|
URL: origin git@git.psi.ch:sls_detectors_software/sls_detector_gui.git
|
||||||
Repository Root: origin git@git.psi.ch:sls_detectors_software/sls_detector_gui.git
|
Repository Root: origin git@git.psi.ch:sls_detectors_software/sls_detector_gui.git
|
||||||
Repsitory UUID: b1b9f6776cfa5994a7c360a5d170b7f8bc6ee41e
|
Repsitory UUID: 082fbe9d8d959d49d7dd10907e3ac10007154dc6
|
||||||
Revision: 401
|
Revision: 402
|
||||||
Branch: developer
|
Branch: developer
|
||||||
Last Changed Author: Dhanya_Maliakal
|
Last Changed Author: Dhanya_Maliakal
|
||||||
Last Changed Rev: 401
|
Last Changed Rev: 402
|
||||||
Last Changed Date: 2017-07-03 14:45:29 +0200
|
Last Changed Date: 2017-07-07 14:32:51.000000002 +0200 ./Makefile.gui
|
||||||
|
@ -22,7 +22,7 @@ QMAKE_LIBS = -L$(QTDIR)/lib
|
|||||||
|
|
||||||
#default
|
#default
|
||||||
DEFINES += VERBOSE DACS_INT PRINT_LOG #VERYVERBOSE CHECKINFERROR
|
DEFINES += VERBOSE DACS_INT PRINT_LOG #VERYVERBOSE CHECKINFERROR
|
||||||
LIBS = -L$(QWTDIR)/lib -lqwt -L$(QWT3D)/lib
|
LIBS = -L$(QWTDIR)/lib -lqwt -L$(QWT3D)/lib $(LDFLAGDET)
|
||||||
|
|
||||||
CXXFLAGS += -g
|
CXXFLAGS += -g
|
||||||
|
|
||||||
@ -59,6 +59,7 @@ extralib.commands = echo `tput setaf 6`; \
|
|||||||
echo 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; \
|
echo 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; \
|
||||||
echo `./updateGitVersion.sh; tput sgr0`
|
echo `./updateGitVersion.sh; tput sgr0`
|
||||||
extralib.depends = $(target)
|
extralib.depends = $(target)
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += extralib
|
QMAKE_EXTRA_TARGETS += extralib
|
||||||
PRE_TARGETDEPS = extra
|
PRE_TARGETDEPS = extra
|
||||||
|
|
||||||
@ -71,8 +72,7 @@ DEPENDPATH += \
|
|||||||
forms/include
|
forms/include
|
||||||
|
|
||||||
|
|
||||||
INCLUDEPATH = \
|
INCLUDEPATH += \
|
||||||
. \
|
|
||||||
$(QWTDIR)/include\
|
$(QWTDIR)/include\
|
||||||
$(QWTDIR) \
|
$(QWTDIR) \
|
||||||
$(QWTDIR)/src\
|
$(QWTDIR)/src\
|
||||||
@ -87,6 +87,7 @@ INCLUDEPATH = \
|
|||||||
/usr/include/QtCore\
|
/usr/include/QtCore\
|
||||||
/usr/include/QtGui\
|
/usr/include/QtGui\
|
||||||
$(INCLUDES)
|
$(INCLUDES)
|
||||||
|
|
||||||
#epics
|
#epics
|
||||||
# $(INCLUDES) /usr/local/epics/base/include/ -I /usr/local/epics/base/include/os/Linux/
|
# $(INCLUDES) /usr/local/epics/base/include/ -I /usr/local/epics/base/include/os/Linux/
|
||||||
|
|
||||||
@ -143,7 +144,7 @@ HEADERS = \
|
|||||||
include/qTabDebugging.h\
|
include/qTabDebugging.h\
|
||||||
include/qTabDeveloper.h\
|
include/qTabDeveloper.h\
|
||||||
include/qTabMessages.h\
|
include/qTabMessages.h\
|
||||||
gitInfoGui.h\
|
include/gitInfoGui.h\
|
||||||
../slsDetectorSoftware/commonFiles/sls_detector_defs.h\
|
../slsDetectorSoftware/commonFiles/sls_detector_defs.h\
|
||||||
../slsReceiverSoftware/include/sls_receiver_defs.h\
|
../slsReceiverSoftware/include/sls_receiver_defs.h\
|
||||||
include/qServer.h
|
include/qServer.h
|
||||||
|
@ -224,7 +224,6 @@ void qTabDeveloper::SetupWidgetWindow(){
|
|||||||
layout->addWidget(comboDetector,0,0);
|
layout->addWidget(comboDetector,0,0);
|
||||||
layout->addWidget(boxDacs,1,0);
|
layout->addWidget(boxDacs,1,0);
|
||||||
|
|
||||||
|
|
||||||
//adcs
|
//adcs
|
||||||
if(NUM_ADC_WIDGETS) {
|
if(NUM_ADC_WIDGETS) {
|
||||||
int rows = NUM_ADC_WIDGETS/2;
|
int rows = NUM_ADC_WIDGETS/2;
|
||||||
|
@ -1,35 +1,28 @@
|
|||||||
MAINDIR=slsDetectorsPackage
|
MAINDIR=slsDetectorsPackage
|
||||||
SPECDIR=slsDetectorGui
|
SPECDIR=slsDetectorGui
|
||||||
TMPFILE=gitInfoGuiTmp.h
|
TMPFILE=include/gitInfoGuiTmp.h
|
||||||
INCLFILE=gitInfoGui.h
|
INCLFILE=include/gitInfoGui.h
|
||||||
WD=$PWD
|
WD=$PWD
|
||||||
|
|
||||||
GITREPO1='git remote -v'
|
#evaluate the variables
|
||||||
GITREPO2=" | grep \"fetch\" | cut -d' ' -f1"
|
EVALFILE=../evalVersionVariables.sh
|
||||||
BRANCH1='git branch -v'
|
source $EVALFILE
|
||||||
BRANCH2=" | grep '*' | cut -d' ' -f2"
|
|
||||||
REPUID1='git log --pretty=format:"%H" -1'
|
|
||||||
AUTH1_1='git log --pretty=format:"%cn" -1'
|
|
||||||
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'
|
|
||||||
|
|
||||||
GITREPO=`eval $GITREPO1 $GITREPO2`
|
#get modified date
|
||||||
BRANCH=`eval $BRANCH1 $BRANCH2`
|
#RDATE1='git log --pretty=format:"%ci" -1'
|
||||||
REPUID=`eval $REPUID1`
|
RDATE1="find . -type f -exec stat --format '%Y :%y %n' '{}' \; | sort -nr | cut -d: -f2- | egrep -v 'gitInfo|build|.git|updateGitVersion' | head -n 1"
|
||||||
AUTH1=`eval $AUTH1_1 $AUTH1_2`
|
|
||||||
AUTH2=`eval $AUTH2_1 $AUTH2_2`
|
|
||||||
REV=`eval $REV1 $REV2`
|
|
||||||
FOLDERREV=`eval $FOLDERREV1 $FOLDERREV2`
|
|
||||||
RDATE=`eval $RDATE1`
|
RDATE=`eval $RDATE1`
|
||||||
|
NEWDATE=$(sed "s/-//g" <<< $RDATE | awk '{print $1;}')
|
||||||
|
NEWDATE=${NEWDATE/#/0x}
|
||||||
|
|
||||||
|
#get old date from INCLFILE
|
||||||
|
OLDDATE=$(more $INCLFILE | grep '#define SVNDATE' | awk '{print $3}')
|
||||||
|
echo $OLDDATE
|
||||||
|
echo $NEWDATE
|
||||||
|
#update INCLFILE if changes
|
||||||
|
if [ "$OLDDATE" != "$NEWDATE" ]; then
|
||||||
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
|
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 ..
|
cd ..
|
||||||
./genVersionHeader.sh $SPECDIR/gitInfo.txt $SPECDIR/$TMPFILE $SPECDIR/$INCLFILE
|
./genVersionHeader.sh $SPECDIR/gitInfo.txt $SPECDIR/$TMPFILE $SPECDIR/$INCLFILE
|
||||||
echo "Revision Updated"
|
|
||||||
cd $WD
|
cd $WD
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user