mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-26 08:10:02 +02:00
first draft of versioning of client
This commit is contained in:
parent
ad3ac2cdee
commit
4d4e4a4ce7
5
slsDetectorSoftware/commonFiles/versionAPI.h
Normal file
5
slsDetectorSoftware/commonFiles/versionAPI.h
Normal file
@ -0,0 +1,5 @@
|
||||
/** API versions */
|
||||
#define APIRECEIVER 0x20170101
|
||||
#define APIEIGER 0x20170101
|
||||
#define APIJUNGFRAU 0x20170101
|
||||
#define APIGOTTHARD 0x20170101
|
7
slsDetectorSoftware/eigerDetectorServer/updateAPIVersion.sh
Executable file
7
slsDetectorSoftware/eigerDetectorServer/updateAPIVersion.sh
Executable file
@ -0,0 +1,7 @@
|
||||
SRCFILE=gitInfoEiger.h
|
||||
DSTFILE=../commonFiles/versionAPI.h
|
||||
|
||||
SRCPATTERN=GITDATE
|
||||
DSTPATTERN=APIEIGER
|
||||
|
||||
awk -v a="$SRCFILE" -v b="$DSTFILE" -v c="$SRCPATTERN" -v d="$DSTPATTERN" 'FNR==NR&&$2==c{x=$3} NR!=FNR{if($2==d){$3=x}print > b}' $SRCFILE $DSTFILE
|
7
slsDetectorSoftware/gotthardDetectorServer/updateAPIVersion.sh
Executable file
7
slsDetectorSoftware/gotthardDetectorServer/updateAPIVersion.sh
Executable file
@ -0,0 +1,7 @@
|
||||
SRCFILE=gitInfoGotthard.h
|
||||
DSTFILE=../commonFiles/versionAPI.h
|
||||
|
||||
SRCPATTERN=GITDATE
|
||||
DSTPATTERN=APIGOTTHARD
|
||||
|
||||
awk -v a="$SRCFILE" -v b="$DSTFILE" -v c="$SRCPATTERN" -v d="$DSTPATTERN" 'FNR==NR&&$2==c{x=$3} NR!=FNR{if($2==d){$3=x}print > b}' $SRCFILE $DSTFILE
|
7
slsDetectorSoftware/jungfrauDetectorServer/updateAPIVersion.sh
Executable file
7
slsDetectorSoftware/jungfrauDetectorServer/updateAPIVersion.sh
Executable file
@ -0,0 +1,7 @@
|
||||
SRCFILE=gitInfoJungfrau.h
|
||||
DSTFILE=../commonFiles/versionAPI.h
|
||||
|
||||
SRCPATTERN=GITDATE
|
||||
DSTPATTERN=APIJUNGFRAU
|
||||
|
||||
awk -v a="$SRCFILE" -v b="$DSTFILE" -v c="$SRCPATTERN" -v d="$DSTPATTERN" 'FNR==NR&&$2==c{x=$3} NR!=FNR{if($2==d){$3=x}print > b}' $SRCFILE $DSTFILE
|
Loading…
x
Reference in New Issue
Block a user