diff --git a/slsDetectorSoftware/commonFiles/versionAPI.h b/slsDetectorSoftware/commonFiles/versionAPI.h new file mode 100644 index 000000000..d9a7620b1 --- /dev/null +++ b/slsDetectorSoftware/commonFiles/versionAPI.h @@ -0,0 +1,5 @@ +/** API versions */ +#define APIRECEIVER 0x20170101 +#define APIEIGER 0x20170101 +#define APIJUNGFRAU 0x20170101 +#define APIGOTTHARD 0x20170101 diff --git a/slsDetectorSoftware/eigerDetectorServer/updateAPIVersion.sh b/slsDetectorSoftware/eigerDetectorServer/updateAPIVersion.sh new file mode 100755 index 000000000..2dbea8493 --- /dev/null +++ b/slsDetectorSoftware/eigerDetectorServer/updateAPIVersion.sh @@ -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 \ No newline at end of file diff --git a/slsDetectorSoftware/gotthardDetectorServer/updateAPIVersion.sh b/slsDetectorSoftware/gotthardDetectorServer/updateAPIVersion.sh new file mode 100755 index 000000000..3d1b12d3a --- /dev/null +++ b/slsDetectorSoftware/gotthardDetectorServer/updateAPIVersion.sh @@ -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 \ No newline at end of file diff --git a/slsDetectorSoftware/jungfrauDetectorServer/updateAPIVersion.sh b/slsDetectorSoftware/jungfrauDetectorServer/updateAPIVersion.sh new file mode 100755 index 000000000..b671637c6 --- /dev/null +++ b/slsDetectorSoftware/jungfrauDetectorServer/updateAPIVersion.sh @@ -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 \ No newline at end of file