From dac60ad76d79d7c8b39750acbf096fdf707c57e5 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 15 Oct 2021 15:47:04 +0200 Subject: [PATCH] added .cpp licenses --- checkLicenceNotice.sh | 46 +++++++++++++++++++ ctbGui/ctbAcquisition.cpp | 2 + ctbGui/ctbAdcs.cpp | 2 + ctbGui/ctbDacs.cpp | 2 + ctbGui/ctbGui.cpp | 2 + ctbGui/ctbMain.cpp | 2 + ctbGui/ctbPattern.cpp | 2 + ctbGui/ctbPowers.cpp | 2 + ctbGui/ctbSignals.cpp | 2 + ctbGui/ctbSlowAdcs.cpp | 2 + ctbGui/patternGenerator/deserializer.cpp | 2 + docs/src/gendoc.cpp | 2 + integrationTests/test-eigerIntegration.cpp | 2 + .../test-integrationDectector.cpp | 2 + integrationTests/test-integrationMulti.cpp | 2 + integrationTests/test.cpp | 2 + python/src/current.cpp | 2 + python/src/detector.cpp | 2 + python/src/detector_in.cpp | 2 + python/src/enums.cpp | 2 + python/src/enums_in.cpp | 2 + python/src/main.cpp | 2 + python/src/network.cpp | 2 + python/src/pattern.cpp | 2 + python/src/scan.cpp | 2 + sample/api.cpp | 2 + sample/time.cpp | 2 + sample/udp.cpp | 2 + sample/useResult.cpp | 2 + sample/using_logger.cpp | 5 +- slsDetectorCalibration/energyCalibration.cpp | 2 + .../interpolations/etaVEL/EtaVEL.cpp | 2 + .../etaVEL/etaVELInterpolation.cpp | 2 + .../jungfrauClusterFinder.cpp | 2 + .../jungfrauInterpolation.cpp | 2 + .../jungfrauPhotonCounter.cpp | 2 + .../jungfrauZmqProcess.cpp | 2 + .../moench03ClusterFinder.cpp | 2 + .../moench03Interpolation.cpp | 2 + .../moench03NoInterpolation.cpp | 2 + .../moenchExecutables/moenchPhotonCounter.cpp | 2 + .../moenchExecutables/moenchZmqProcess.cpp | 2 + slsDetectorCalibration/tiffIO.cpp | 2 + .../slsDetectorPlotting/src/SlsQt1DPlot.cpp | 2 + .../slsDetectorPlotting/src/SlsQt1DZoomer.cpp | 2 + .../slsDetectorPlotting/src/SlsQt2DHist.cpp | 2 + .../slsDetectorPlotting/src/SlsQt2DPlot.cpp | 2 + slsDetectorGui/src/qCloneWidget.cpp | 2 + slsDetectorGui/src/qDacWidget.cpp | 2 + slsDetectorGui/src/qDetectorMain.cpp | 2 + slsDetectorGui/src/qDrawPlot.cpp | 2 + slsDetectorGui/src/qTabAdvanced.cpp | 2 + slsDetectorGui/src/qTabDataOutput.cpp | 2 + slsDetectorGui/src/qTabDebugging.cpp | 2 + slsDetectorGui/src/qTabDeveloper.cpp | 2 + slsDetectorGui/src/qTabMeasurement.cpp | 2 + slsDetectorGui/src/qTabMessages.cpp | 2 + slsDetectorGui/src/qTabPlot.cpp | 2 + slsDetectorGui/src/qTabSettings.cpp | 2 + slsDetectorSoftware/src/CmdLineApp.cpp | 2 + slsDetectorSoftware/src/CmdParser.cpp | 2 + slsDetectorSoftware/src/CmdProxy.cpp | 2 + slsDetectorSoftware/src/Detector.cpp | 2 + slsDetectorSoftware/src/DetectorImpl.cpp | 2 + slsDetectorSoftware/src/Module.cpp | 2 + slsDetectorSoftware/src/Pattern.cpp | 2 + slsDetectorSoftware/tests/test-CmdParser.cpp | 2 + .../tests/test-CmdProxy-chiptestboard.cpp | 2 + .../tests/test-CmdProxy-eiger.cpp | 2 + .../tests/test-CmdProxy-global.cpp | 2 + .../tests/test-CmdProxy-gotthard.cpp | 2 + .../tests/test-CmdProxy-gotthard2.cpp | 2 + .../tests/test-CmdProxy-jungfrau.cpp | 2 + .../tests/test-CmdProxy-moench.cpp | 2 + .../tests/test-CmdProxy-mythen3.cpp | 2 + .../tests/test-CmdProxy-pattern.cpp | 2 + .../tests/test-CmdProxy-rx.cpp | 2 + slsDetectorSoftware/tests/test-CmdProxy.cpp | 2 + slsDetectorSoftware/tests/test-Module.cpp | 2 + slsDetectorSoftware/tests/test-Pattern.cpp | 2 + slsDetectorSoftware/tests/test-Result.cpp | 2 + .../tests/test-SharedMemory.cpp | 2 + .../tests/test-slsDetector.cpp | 2 + slsReceiverSoftware/src/BinaryDataFile.cpp | 2 + slsReceiverSoftware/src/BinaryMasterFile.cpp | 2 + slsReceiverSoftware/src/ClientInterface.cpp | 2 + slsReceiverSoftware/src/DataProcessor.cpp | 2 + slsReceiverSoftware/src/DataStreamer.cpp | 2 + slsReceiverSoftware/src/Fifo.cpp | 2 + slsReceiverSoftware/src/File.cpp | 2 + slsReceiverSoftware/src/HDF5DataFile.cpp | 2 + slsReceiverSoftware/src/HDF5MasterFile.cpp | 2 + slsReceiverSoftware/src/HDF5VirtualFile.cpp | 2 + slsReceiverSoftware/src/Implementation.cpp | 2 + slsReceiverSoftware/src/Listener.cpp | 2 + slsReceiverSoftware/src/MultiReceiverApp.cpp | 2 + slsReceiverSoftware/src/Receiver.cpp | 2 + slsReceiverSoftware/src/ReceiverApp.cpp | 2 + slsReceiverSoftware/src/ThreadObject.cpp | 2 + .../tests/test-CircularFifo.cpp | 2 + .../tests/test-GeneralData.cpp | 2 + slsSupportLib/src/ClientSocket.cpp | 2 + slsSupportLib/src/DataSocket.cpp | 2 + slsSupportLib/src/ServerInterface.cpp | 2 + slsSupportLib/src/ServerSocket.cpp | 2 + slsSupportLib/src/ToString.cpp | 2 + slsSupportLib/src/UdpRxSocket.cpp | 2 + slsSupportLib/src/ZmqSocket.cpp | 2 + slsSupportLib/src/file_utils.cpp | 2 + slsSupportLib/src/md5_helper.cpp | 2 + slsSupportLib/src/network_utils.cpp | 2 + slsSupportLib/src/sls_detector_exceptions.cpp | 2 + slsSupportLib/src/string_utils.cpp | 2 + slsSupportLib/tests/test-Sockets.cpp | 2 + slsSupportLib/tests/test-StaticVector.cpp | 2 + slsSupportLib/tests/test-Timer.cpp | 2 + slsSupportLib/tests/test-ToString.cpp | 2 + slsSupportLib/tests/test-TypeTraits.cpp | 2 + slsSupportLib/tests/test-UdpRxSocket.cpp | 2 + slsSupportLib/tests/test-ZmqSocket.cpp | 2 + slsSupportLib/tests/test-bit_utils.cpp | 2 + slsSupportLib/tests/test-container_utils.cpp | 2 + slsSupportLib/tests/test-file_utils.cpp | 2 + slsSupportLib/tests/test-logger.cpp | 2 + slsSupportLib/tests/test-network_utils.cpp | 2 + .../tests/test-sls_detector_defs.cpp | 2 + slsSupportLib/tests/test-string_utils.cpp | 2 + tests/src/testclient.cpp | 2 + tests/src/testserver.cpp | 2 + tests/test.cpp | 2 + updateAPIVersion.sh | 2 +- updateLicenseNotice.sh | 21 +++++---- 132 files changed, 319 insertions(+), 11 deletions(-) create mode 100644 checkLicenceNotice.sh mode change 100755 => 100644 ctbGui/ctbAcquisition.cpp mode change 100755 => 100644 ctbGui/ctbAdcs.cpp mode change 100755 => 100644 ctbGui/ctbDacs.cpp mode change 100755 => 100644 ctbGui/ctbGui.cpp mode change 100755 => 100644 ctbGui/ctbMain.cpp mode change 100755 => 100644 ctbGui/ctbPattern.cpp mode change 100755 => 100644 ctbGui/ctbSignals.cpp mode change 100755 => 100644 integrationTests/test.cpp mode change 100755 => 100644 python/src/main.cpp mode change 100755 => 100644 slsSupportLib/src/string_utils.cpp diff --git a/checkLicenceNotice.sh b/checkLicenceNotice.sh new file mode 100644 index 000000000..e50a840eb --- /dev/null +++ b/checkLicenceNotice.sh @@ -0,0 +1,46 @@ +#!/bin/bash +RED='\033[0;31m' +NC='\033[0m' # No Color +WD=$PWD + +if [ $# -lt 2 ]; then + echo "Wrong usage of updateLicenseNotice.sh. Requires atleast 1 argument [RELATIVE PATH] [.h/.cpp etc]" + return [-1] +fi + +CURRENT=$WD/$1 +FILE_TYPE=$2 + +if [ ! -d "$CURRENT" ]; then + echo "This directory ${CURRENT} does not exist" + return [-1] +fi + +cd $CURRENT + + +NOTICE="SPDX-License-Identifier" +#echo -e "Notice is \n$NOTICE" + + +for file in $(find $CURRENT -name "*$FILE_TYPE" -not -path "*./build/*" -not -path "*./libs/*"); do + #echo -e "\nProcessing $file" + #echo "$file" + firstline=$(head -n 1 $file) + +#< $file.modified + + #mv $file.modified $file +#testing +done + + +cd $WD diff --git a/ctbGui/ctbAcquisition.cpp b/ctbGui/ctbAcquisition.cpp old mode 100755 new mode 100644 index d719802ff..d545ac680 --- a/ctbGui/ctbAcquisition.cpp +++ b/ctbGui/ctbAcquisition.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package //#define TESTADC diff --git a/ctbGui/ctbAdcs.cpp b/ctbGui/ctbAdcs.cpp old mode 100755 new mode 100644 index dbf2b4e63..694f5ff13 --- a/ctbGui/ctbAdcs.cpp +++ b/ctbGui/ctbAdcs.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/ctbGui/ctbDacs.cpp b/ctbGui/ctbDacs.cpp old mode 100755 new mode 100644 index f386492f6..dd2763fdf --- a/ctbGui/ctbDacs.cpp +++ b/ctbGui/ctbDacs.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include diff --git a/ctbGui/ctbGui.cpp b/ctbGui/ctbGui.cpp old mode 100755 new mode 100644 index 50df983eb..5c34d8ee0 --- a/ctbGui/ctbGui.cpp +++ b/ctbGui/ctbGui.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include diff --git a/ctbGui/ctbMain.cpp b/ctbGui/ctbMain.cpp old mode 100755 new mode 100644 index d5d698e74..0308589bb --- a/ctbGui/ctbMain.cpp +++ b/ctbGui/ctbMain.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/ctbGui/ctbPattern.cpp b/ctbGui/ctbPattern.cpp old mode 100755 new mode 100644 index 7e902db50..5d3d49a5e --- a/ctbGui/ctbPattern.cpp +++ b/ctbGui/ctbPattern.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/ctbGui/ctbPowers.cpp b/ctbGui/ctbPowers.cpp index 42a3eca81..498ec2c13 100644 --- a/ctbGui/ctbPowers.cpp +++ b/ctbGui/ctbPowers.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include diff --git a/ctbGui/ctbSignals.cpp b/ctbGui/ctbSignals.cpp old mode 100755 new mode 100644 index 84cd221fc..f1e0c840f --- a/ctbGui/ctbSignals.cpp +++ b/ctbGui/ctbSignals.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/ctbGui/ctbSlowAdcs.cpp b/ctbGui/ctbSlowAdcs.cpp index 8228fe117..6507e0d17 100644 --- a/ctbGui/ctbSlowAdcs.cpp +++ b/ctbGui/ctbSlowAdcs.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include diff --git a/ctbGui/patternGenerator/deserializer.cpp b/ctbGui/patternGenerator/deserializer.cpp index c315ca419..0a52f4ad9 100644 --- a/ctbGui/patternGenerator/deserializer.cpp +++ b/ctbGui/patternGenerator/deserializer.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include diff --git a/docs/src/gendoc.cpp b/docs/src/gendoc.cpp index 6d3278850..9044f563e 100644 --- a/docs/src/gendoc.cpp +++ b/docs/src/gendoc.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /** * Utility program to generate input files for the command line * documentation. Uses the string returned from sls_detector_help cmd diff --git a/integrationTests/test-eigerIntegration.cpp b/integrationTests/test-eigerIntegration.cpp index a02b85677..0f7fea11f 100644 --- a/integrationTests/test-eigerIntegration.cpp +++ b/integrationTests/test-eigerIntegration.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "DetectorImpl.h" #include "catch.hpp" #include "sls/string_utils.h" diff --git a/integrationTests/test-integrationDectector.cpp b/integrationTests/test-integrationDectector.cpp index 3dc71326a..9d0847b4f 100644 --- a/integrationTests/test-integrationDectector.cpp +++ b/integrationTests/test-integrationDectector.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" diff --git a/integrationTests/test-integrationMulti.cpp b/integrationTests/test-integrationMulti.cpp index eaa5edd11..3dd6b1903 100644 --- a/integrationTests/test-integrationMulti.cpp +++ b/integrationTests/test-integrationMulti.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "DetectorImpl.h" #include "catch.hpp" #include "sls/string_utils.h" diff --git a/integrationTests/test.cpp b/integrationTests/test.cpp old mode 100755 new mode 100644 index 8daed99c4..39e7230ab --- a/integrationTests/test.cpp +++ b/integrationTests/test.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package // tests-main.cpp #define CATCH_CONFIG_MAIN #include "catch.hpp" \ No newline at end of file diff --git a/python/src/current.cpp b/python/src/current.cpp index f24ced0c4..487f9e35f 100644 --- a/python/src/current.cpp +++ b/python/src/current.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/python/src/detector.cpp b/python/src/detector.cpp index 0141bcd8d..9bc381c5a 100644 --- a/python/src/detector.cpp +++ b/python/src/detector.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* WARINING This file is auto generated any edits might be overwritten without * warning */ diff --git a/python/src/detector_in.cpp b/python/src/detector_in.cpp index c08cdf764..0aa492189 100644 --- a/python/src/detector_in.cpp +++ b/python/src/detector_in.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/python/src/enums.cpp b/python/src/enums.cpp index c04f4e852..5c2528e80 100644 --- a/python/src/enums.cpp +++ b/python/src/enums.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* WARINING This file is auto generated any edits might be overwritten without * warning */ diff --git a/python/src/enums_in.cpp b/python/src/enums_in.cpp index 129114845..4530ca924 100644 --- a/python/src/enums_in.cpp +++ b/python/src/enums_in.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/python/src/main.cpp b/python/src/main.cpp old mode 100755 new mode 100644 index 7afa194b2..67a9f89e5 --- a/python/src/main.cpp +++ b/python/src/main.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/python/src/network.cpp b/python/src/network.cpp index 8130c3e96..f6c8a1fad 100644 --- a/python/src/network.cpp +++ b/python/src/network.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* This file contains Python bindings for the IpAddr and MacAddr classes. diff --git a/python/src/pattern.cpp b/python/src/pattern.cpp index c12bc96d9..e618f2954 100644 --- a/python/src/pattern.cpp +++ b/python/src/pattern.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/python/src/scan.cpp b/python/src/scan.cpp index afd83832b..308c28c1a 100644 --- a/python/src/scan.cpp +++ b/python/src/scan.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/sample/api.cpp b/sample/api.cpp index 705fba788..c39d84544 100644 --- a/sample/api.cpp +++ b/sample/api.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include diff --git a/sample/time.cpp b/sample/time.cpp index 96f10e349..09beca9e7 100644 --- a/sample/time.cpp +++ b/sample/time.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include #include #include diff --git a/sample/udp.cpp b/sample/udp.cpp index b647992c9..dcc9689d5 100644 --- a/sample/udp.cpp +++ b/sample/udp.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/UdpRxSocket.h" #include "sls/sls_detector_defs.h" #include diff --git a/sample/useResult.cpp b/sample/useResult.cpp index e7944f628..eda206e83 100644 --- a/sample/useResult.cpp +++ b/sample/useResult.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /** Examples on how to use Result */ #include "sls/Result.h" diff --git a/sample/using_logger.cpp b/sample/using_logger.cpp index ec46588af..7557d5c83 100644 --- a/sample/using_logger.cpp +++ b/sample/using_logger.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/logger.h" #include #include @@ -7,7 +9,8 @@ int main() { std::cout << "Compare output between old and new:\n"; LOG(logINFO) << "Some info message"; LOG(logERROR) << "This is an error"; - LOG(logWARNING) << "While this is only a warning"; + LOG(logWARNING) << "While this is only a warning"; prefix="/afs/psi.ch/project/sls_det_software/dhanya_softwareDevelopment/mySoft/slsDetectorPackage/" + p=${file#"$prefix"} //Logging level can be configure at runtime std::cout << "\n\n"; diff --git a/slsDetectorCalibration/energyCalibration.cpp b/slsDetectorCalibration/energyCalibration.cpp index 7461eca45..a1f443fd5 100644 --- a/slsDetectorCalibration/energyCalibration.cpp +++ b/slsDetectorCalibration/energyCalibration.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "energyCalibration.h" #ifdef __CINT diff --git a/slsDetectorCalibration/interpolations/etaVEL/EtaVEL.cpp b/slsDetectorCalibration/interpolations/etaVEL/EtaVEL.cpp index 922c91d4f..42783a436 100644 --- a/slsDetectorCalibration/interpolations/etaVEL/EtaVEL.cpp +++ b/slsDetectorCalibration/interpolations/etaVEL/EtaVEL.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "EtaVEL.h" #include diff --git a/slsDetectorCalibration/interpolations/etaVEL/etaVELInterpolation.cpp b/slsDetectorCalibration/interpolations/etaVEL/etaVELInterpolation.cpp index 1cdd3c718..43e6ebed0 100644 --- a/slsDetectorCalibration/interpolations/etaVEL/etaVELInterpolation.cpp +++ b/slsDetectorCalibration/interpolations/etaVEL/etaVELInterpolation.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "interpolation_EtaVEL.h" #include "TH2F.h" #include "TCanvas.h" diff --git a/slsDetectorCalibration/jungfrauExecutables/jungfrauClusterFinder.cpp b/slsDetectorCalibration/jungfrauExecutables/jungfrauClusterFinder.cpp index f7b2f916a..edf1a83b9 100644 --- a/slsDetectorCalibration/jungfrauExecutables/jungfrauClusterFinder.cpp +++ b/slsDetectorCalibration/jungfrauExecutables/jungfrauClusterFinder.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package //#include "sls/ansi.h" #include diff --git a/slsDetectorCalibration/jungfrauExecutables/jungfrauInterpolation.cpp b/slsDetectorCalibration/jungfrauExecutables/jungfrauInterpolation.cpp index eeeed90c6..dc9953590 100644 --- a/slsDetectorCalibration/jungfrauExecutables/jungfrauInterpolation.cpp +++ b/slsDetectorCalibration/jungfrauExecutables/jungfrauInterpolation.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ansi.h" #include diff --git a/slsDetectorCalibration/jungfrauExecutables/jungfrauPhotonCounter.cpp b/slsDetectorCalibration/jungfrauExecutables/jungfrauPhotonCounter.cpp index 7b765bd5e..51b416e7a 100644 --- a/slsDetectorCalibration/jungfrauExecutables/jungfrauPhotonCounter.cpp +++ b/slsDetectorCalibration/jungfrauExecutables/jungfrauPhotonCounter.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package //#include "sls/ansi.h" #include #define CORR diff --git a/slsDetectorCalibration/jungfrauExecutables/jungfrauZmqProcess.cpp b/slsDetectorCalibration/jungfrauExecutables/jungfrauZmqProcess.cpp index 47e424306..a92561821 100644 --- a/slsDetectorCalibration/jungfrauExecutables/jungfrauZmqProcess.cpp +++ b/slsDetectorCalibration/jungfrauExecutables/jungfrauZmqProcess.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package //#define WRITE_QUAD #define DEVELOPER #undef CORR diff --git a/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp b/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp index 36a6675af..4ed5d26e4 100644 --- a/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp +++ b/slsDetectorCalibration/moenchExecutables/moench03ClusterFinder.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package //#include "sls/ansi.h" #include diff --git a/slsDetectorCalibration/moenchExecutables/moench03Interpolation.cpp b/slsDetectorCalibration/moenchExecutables/moench03Interpolation.cpp index eeeed90c6..dc9953590 100644 --- a/slsDetectorCalibration/moenchExecutables/moench03Interpolation.cpp +++ b/slsDetectorCalibration/moenchExecutables/moench03Interpolation.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ansi.h" #include diff --git a/slsDetectorCalibration/moenchExecutables/moench03NoInterpolation.cpp b/slsDetectorCalibration/moenchExecutables/moench03NoInterpolation.cpp index b07985ec9..406c5ae33 100644 --- a/slsDetectorCalibration/moenchExecutables/moench03NoInterpolation.cpp +++ b/slsDetectorCalibration/moenchExecutables/moench03NoInterpolation.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ansi.h" #include diff --git a/slsDetectorCalibration/moenchExecutables/moenchPhotonCounter.cpp b/slsDetectorCalibration/moenchExecutables/moenchPhotonCounter.cpp index 7b765bd5e..51b416e7a 100644 --- a/slsDetectorCalibration/moenchExecutables/moenchPhotonCounter.cpp +++ b/slsDetectorCalibration/moenchExecutables/moenchPhotonCounter.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package //#include "sls/ansi.h" #include #define CORR diff --git a/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp b/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp index b79c28f60..70237919b 100644 --- a/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp +++ b/slsDetectorCalibration/moenchExecutables/moenchZmqProcess.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package //#define WRITE_QUAD #define DEVELOPER #undef CORR diff --git a/slsDetectorCalibration/tiffIO.cpp b/slsDetectorCalibration/tiffIO.cpp index 5b3d7b737..c92ba87fc 100644 --- a/slsDetectorCalibration/tiffIO.cpp +++ b/slsDetectorCalibration/tiffIO.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #ifndef MY_TIFF_IO_H #include "tiffIO.h" #endif diff --git a/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DPlot.cpp b/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DPlot.cpp index 6c04f0124..b7b2baf98 100644 --- a/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DPlot.cpp +++ b/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DPlot.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* TODO! short description */ #include "SlsQt1DPlot.h" diff --git a/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DZoomer.cpp b/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DZoomer.cpp index 3c0bfa09f..85813fc45 100644 --- a/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DZoomer.cpp +++ b/slsDetectorGui/slsDetectorPlotting/src/SlsQt1DZoomer.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* TODO! short description */ #include "SlsQt1DZoomer.h" #include "SlsQt1DPlot.h" diff --git a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DHist.cpp b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DHist.cpp index ade86d47c..a6dbf0548 100644 --- a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DHist.cpp +++ b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DHist.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* TODO! short description */ #include "SlsQt2DHist.h" #include "sls/ansi.h" diff --git a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp index e00c93743..55734dbc5 100644 --- a/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp +++ b/slsDetectorGui/slsDetectorPlotting/src/SlsQt2DPlot.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "SlsQt2DPlot.h" // #include "sls/ansi.h" diff --git a/slsDetectorGui/src/qCloneWidget.cpp b/slsDetectorGui/src/qCloneWidget.cpp index 42b80439e..4d8c4210f 100644 --- a/slsDetectorGui/src/qCloneWidget.cpp +++ b/slsDetectorGui/src/qCloneWidget.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qCloneWidget.h" #include "SlsQt1DPlot.h" #include "SlsQt2DPlot.h" diff --git a/slsDetectorGui/src/qDacWidget.cpp b/slsDetectorGui/src/qDacWidget.cpp index 5db875e4f..7fb53b46b 100644 --- a/slsDetectorGui/src/qDacWidget.cpp +++ b/slsDetectorGui/src/qDacWidget.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qDacWidget.h" #include "qDefs.h" diff --git a/slsDetectorGui/src/qDetectorMain.cpp b/slsDetectorGui/src/qDetectorMain.cpp index 53be52af0..1f98144d8 100644 --- a/slsDetectorGui/src/qDetectorMain.cpp +++ b/slsDetectorGui/src/qDetectorMain.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qDetectorMain.h" #include "qDefs.h" #include "qDrawPlot.h" diff --git a/slsDetectorGui/src/qDrawPlot.cpp b/slsDetectorGui/src/qDrawPlot.cpp index c10646a8b..40edc1538 100644 --- a/slsDetectorGui/src/qDrawPlot.cpp +++ b/slsDetectorGui/src/qDrawPlot.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qDrawPlot.h" #include "SlsQt1DPlot.h" #include "SlsQt2DPlot.h" diff --git a/slsDetectorGui/src/qTabAdvanced.cpp b/slsDetectorGui/src/qTabAdvanced.cpp index afbe147e2..35792344b 100644 --- a/slsDetectorGui/src/qTabAdvanced.cpp +++ b/slsDetectorGui/src/qTabAdvanced.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabAdvanced.h" #include "qDefs.h" #include "qDrawPlot.h" diff --git a/slsDetectorGui/src/qTabDataOutput.cpp b/slsDetectorGui/src/qTabDataOutput.cpp index 86256e6fd..eda5f9817 100644 --- a/slsDetectorGui/src/qTabDataOutput.cpp +++ b/slsDetectorGui/src/qTabDataOutput.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabDataOutput.h" #include "qDefs.h" diff --git a/slsDetectorGui/src/qTabDebugging.cpp b/slsDetectorGui/src/qTabDebugging.cpp index 3e6497710..b995ba65a 100644 --- a/slsDetectorGui/src/qTabDebugging.cpp +++ b/slsDetectorGui/src/qTabDebugging.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabDebugging.h" #include "qDefs.h" #include "sls/ToString.h" diff --git a/slsDetectorGui/src/qTabDeveloper.cpp b/slsDetectorGui/src/qTabDeveloper.cpp index 8d0084719..0c4a751e3 100644 --- a/slsDetectorGui/src/qTabDeveloper.cpp +++ b/slsDetectorGui/src/qTabDeveloper.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabDeveloper.h" #include "qDacWidget.h" #include "qDefs.h" diff --git a/slsDetectorGui/src/qTabMeasurement.cpp b/slsDetectorGui/src/qTabMeasurement.cpp index 19aa42bf7..93e4e4409 100644 --- a/slsDetectorGui/src/qTabMeasurement.cpp +++ b/slsDetectorGui/src/qTabMeasurement.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabMeasurement.h" #include "qDefs.h" #include "qDrawPlot.h" diff --git a/slsDetectorGui/src/qTabMessages.cpp b/slsDetectorGui/src/qTabMessages.cpp index 98a195989..8f87d02d7 100644 --- a/slsDetectorGui/src/qTabMessages.cpp +++ b/slsDetectorGui/src/qTabMessages.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabMessages.h" #include "qDefs.h" diff --git a/slsDetectorGui/src/qTabPlot.cpp b/slsDetectorGui/src/qTabPlot.cpp index 1f1e77a4e..c4954b234 100644 --- a/slsDetectorGui/src/qTabPlot.cpp +++ b/slsDetectorGui/src/qTabPlot.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabPlot.h" #include "qDefs.h" #include "qDrawPlot.h" diff --git a/slsDetectorGui/src/qTabSettings.cpp b/slsDetectorGui/src/qTabSettings.cpp index 158cd6de1..aff785855 100644 --- a/slsDetectorGui/src/qTabSettings.cpp +++ b/slsDetectorGui/src/qTabSettings.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "qTabSettings.h" #include "qDefs.h" #include "sls/ToString.h" diff --git a/slsDetectorSoftware/src/CmdLineApp.cpp b/slsDetectorSoftware/src/CmdLineApp.cpp index fc7867ce3..cc86cfcfa 100644 --- a/slsDetectorSoftware/src/CmdLineApp.cpp +++ b/slsDetectorSoftware/src/CmdLineApp.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* This file is used to generate the command line binaries diff --git a/slsDetectorSoftware/src/CmdParser.cpp b/slsDetectorSoftware/src/CmdParser.cpp index ab7dc52ad..109a50b77 100644 --- a/slsDetectorSoftware/src/CmdParser.cpp +++ b/slsDetectorSoftware/src/CmdParser.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdParser.h" #include "sls/string_utils.h" diff --git a/slsDetectorSoftware/src/CmdProxy.cpp b/slsDetectorSoftware/src/CmdProxy.cpp index dedb7f813..56825c542 100644 --- a/slsDetectorSoftware/src/CmdProxy.cpp +++ b/slsDetectorSoftware/src/CmdProxy.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "HelpDacs.h" #include "sls/TimeHelper.h" diff --git a/slsDetectorSoftware/src/Detector.cpp b/slsDetectorSoftware/src/Detector.cpp index fa442da69..2c2d6a86a 100644 --- a/slsDetectorSoftware/src/Detector.cpp +++ b/slsDetectorSoftware/src/Detector.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/Detector.h" #include "sls/detectorData.h" diff --git a/slsDetectorSoftware/src/DetectorImpl.cpp b/slsDetectorSoftware/src/DetectorImpl.cpp index f5a455992..2c1c011de 100644 --- a/slsDetectorSoftware/src/DetectorImpl.cpp +++ b/slsDetectorSoftware/src/DetectorImpl.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "DetectorImpl.h" #include "Module.h" #include "SharedMemory.h" diff --git a/slsDetectorSoftware/src/Module.cpp b/slsDetectorSoftware/src/Module.cpp index 7404e66be..10c1cf974 100644 --- a/slsDetectorSoftware/src/Module.cpp +++ b/slsDetectorSoftware/src/Module.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "Module.h" #include "SharedMemory.h" #include "sls/ClientSocket.h" diff --git a/slsDetectorSoftware/src/Pattern.cpp b/slsDetectorSoftware/src/Pattern.cpp index aade2548c..a804f0d71 100644 --- a/slsDetectorSoftware/src/Pattern.cpp +++ b/slsDetectorSoftware/src/Pattern.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/Pattern.h" #include "sls/ToString.h" #include "sls/logger.h" diff --git a/slsDetectorSoftware/tests/test-CmdParser.cpp b/slsDetectorSoftware/tests/test-CmdParser.cpp index c7e2cb916..1e530d8c8 100644 --- a/slsDetectorSoftware/tests/test-CmdParser.cpp +++ b/slsDetectorSoftware/tests/test-CmdParser.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdParser.h" #include "catch.hpp" #include diff --git a/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp b/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp index d77471a0c..e750bc6a4 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-eiger.cpp b/slsDetectorSoftware/tests/test-CmdProxy-eiger.cpp index 032901d3a..27b4b7129 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-eiger.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-eiger.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-global.cpp b/slsDetectorSoftware/tests/test-CmdProxy-global.cpp index 64289f722..b8a0ca624 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-global.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-global.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "test-CmdProxy-global.h" #include "CmdProxy.h" #include "catch.hpp" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-gotthard.cpp b/slsDetectorSoftware/tests/test-CmdProxy-gotthard.cpp index 84c084766..cbb737a1f 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-gotthard.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-gotthard.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp b/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp index a69272d63..cdba5d406 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-jungfrau.cpp b/slsDetectorSoftware/tests/test-CmdProxy-jungfrau.cpp index 798498a2c..bc798ecd0 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-jungfrau.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-jungfrau.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-moench.cpp b/slsDetectorSoftware/tests/test-CmdProxy-moench.cpp index f8431f7a9..a3f8838e4 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-moench.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-moench.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-mythen3.cpp b/slsDetectorSoftware/tests/test-CmdProxy-mythen3.cpp index e6d0b63bc..a4f3e1d8a 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-mythen3.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-mythen3.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-pattern.cpp b/slsDetectorSoftware/tests/test-CmdProxy-pattern.cpp index 611cc9163..739ca10f9 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-pattern.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-pattern.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp b/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp index 2a964d123..ca7cecfe7 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-CmdProxy.cpp b/slsDetectorSoftware/tests/test-CmdProxy.cpp index 5f68c922c..6d96e55a3 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "CmdProxy.h" #include "catch.hpp" #include "sls/Detector.h" diff --git a/slsDetectorSoftware/tests/test-Module.cpp b/slsDetectorSoftware/tests/test-Module.cpp index e80a1a449..667aea4e9 100644 --- a/slsDetectorSoftware/tests/test-Module.cpp +++ b/slsDetectorSoftware/tests/test-Module.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "Module.h" #include "SharedMemory.h" #include "catch.hpp" diff --git a/slsDetectorSoftware/tests/test-Pattern.cpp b/slsDetectorSoftware/tests/test-Pattern.cpp index 28fb21056..868af4b2e 100644 --- a/slsDetectorSoftware/tests/test-Pattern.cpp +++ b/slsDetectorSoftware/tests/test-Pattern.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/Pattern.h" diff --git a/slsDetectorSoftware/tests/test-Result.cpp b/slsDetectorSoftware/tests/test-Result.cpp index bb113c93e..72e1993f0 100644 --- a/slsDetectorSoftware/tests/test-Result.cpp +++ b/slsDetectorSoftware/tests/test-Result.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/Result.h" #include "sls/ToString.h" diff --git a/slsDetectorSoftware/tests/test-SharedMemory.cpp b/slsDetectorSoftware/tests/test-SharedMemory.cpp index 45d3ec7d7..337929116 100644 --- a/slsDetectorSoftware/tests/test-SharedMemory.cpp +++ b/slsDetectorSoftware/tests/test-SharedMemory.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "SharedMemory.h" #include "catch.hpp" diff --git a/slsDetectorSoftware/tests/test-slsDetector.cpp b/slsDetectorSoftware/tests/test-slsDetector.cpp index cd939fb0b..f68c68b9e 100644 --- a/slsDetectorSoftware/tests/test-slsDetector.cpp +++ b/slsDetectorSoftware/tests/test-slsDetector.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package // #include "catch.hpp" // #include "sls/container_utils.h" diff --git a/slsReceiverSoftware/src/BinaryDataFile.cpp b/slsReceiverSoftware/src/BinaryDataFile.cpp index 731adae3d..d93fbc46c 100644 --- a/slsReceiverSoftware/src/BinaryDataFile.cpp +++ b/slsReceiverSoftware/src/BinaryDataFile.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "BinaryDataFile.h" BinaryDataFile::BinaryDataFile(const int index) : File(BINARY), index_(index) {} diff --git a/slsReceiverSoftware/src/BinaryMasterFile.cpp b/slsReceiverSoftware/src/BinaryMasterFile.cpp index 2c03309af..eedf88879 100644 --- a/slsReceiverSoftware/src/BinaryMasterFile.cpp +++ b/slsReceiverSoftware/src/BinaryMasterFile.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "BinaryMasterFile.h" #include "MasterAttributes.h" diff --git a/slsReceiverSoftware/src/ClientInterface.cpp b/slsReceiverSoftware/src/ClientInterface.cpp index b6cb23af2..a3d489423 100644 --- a/slsReceiverSoftware/src/ClientInterface.cpp +++ b/slsReceiverSoftware/src/ClientInterface.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "ClientInterface.h" #include "sls/ServerSocket.h" #include "sls/StaticVector.h" diff --git a/slsReceiverSoftware/src/DataProcessor.cpp b/slsReceiverSoftware/src/DataProcessor.cpp index 2a420f924..cb0f84766 100644 --- a/slsReceiverSoftware/src/DataProcessor.cpp +++ b/slsReceiverSoftware/src/DataProcessor.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /************************************************ * @file DataProcessor.cpp * @short creates data processor thread that diff --git a/slsReceiverSoftware/src/DataStreamer.cpp b/slsReceiverSoftware/src/DataStreamer.cpp index d5ad9763e..10a682e67 100644 --- a/slsReceiverSoftware/src/DataStreamer.cpp +++ b/slsReceiverSoftware/src/DataStreamer.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /************************************************ * @file DataStreamer.cpp * @short streams data from receiver via ZMQ diff --git a/slsReceiverSoftware/src/Fifo.cpp b/slsReceiverSoftware/src/Fifo.cpp index f8b1460ef..8221831e5 100644 --- a/slsReceiverSoftware/src/Fifo.cpp +++ b/slsReceiverSoftware/src/Fifo.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /************************************************ * @file Fifo.cpp * @short constructs the fifo structure diff --git a/slsReceiverSoftware/src/File.cpp b/slsReceiverSoftware/src/File.cpp index caa5ea93a..74b587515 100644 --- a/slsReceiverSoftware/src/File.cpp +++ b/slsReceiverSoftware/src/File.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "File.h" #include diff --git a/slsReceiverSoftware/src/HDF5DataFile.cpp b/slsReceiverSoftware/src/HDF5DataFile.cpp index 270924fc1..758d70d7b 100644 --- a/slsReceiverSoftware/src/HDF5DataFile.cpp +++ b/slsReceiverSoftware/src/HDF5DataFile.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "HDF5DataFile.h" #include "receiver_defs.h" diff --git a/slsReceiverSoftware/src/HDF5MasterFile.cpp b/slsReceiverSoftware/src/HDF5MasterFile.cpp index eb9b69e73..2c3721501 100644 --- a/slsReceiverSoftware/src/HDF5MasterFile.cpp +++ b/slsReceiverSoftware/src/HDF5MasterFile.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "HDF5MasterFile.h" #include "MasterAttributes.h" diff --git a/slsReceiverSoftware/src/HDF5VirtualFile.cpp b/slsReceiverSoftware/src/HDF5VirtualFile.cpp index 9a988e275..71ef51099 100644 --- a/slsReceiverSoftware/src/HDF5VirtualFile.cpp +++ b/slsReceiverSoftware/src/HDF5VirtualFile.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "HDF5VirtualFile.h" #include "receiver_defs.h" diff --git a/slsReceiverSoftware/src/Implementation.cpp b/slsReceiverSoftware/src/Implementation.cpp index 8e4976d54..80655a099 100644 --- a/slsReceiverSoftware/src/Implementation.cpp +++ b/slsReceiverSoftware/src/Implementation.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "Implementation.h" #include "DataProcessor.h" #include "DataStreamer.h" diff --git a/slsReceiverSoftware/src/Listener.cpp b/slsReceiverSoftware/src/Listener.cpp index 0a907f786..675a91553 100644 --- a/slsReceiverSoftware/src/Listener.cpp +++ b/slsReceiverSoftware/src/Listener.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /************************************************ * @file Listener.cpp * @short creates the listener thread that diff --git a/slsReceiverSoftware/src/MultiReceiverApp.cpp b/slsReceiverSoftware/src/MultiReceiverApp.cpp index ff95b669c..991555ffc 100644 --- a/slsReceiverSoftware/src/MultiReceiverApp.cpp +++ b/slsReceiverSoftware/src/MultiReceiverApp.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* Creates the slsMultiReceiver for running multiple receivers form a single * binary */ #include "sls/Receiver.h" diff --git a/slsReceiverSoftware/src/Receiver.cpp b/slsReceiverSoftware/src/Receiver.cpp index 4c2c5f178..ea140981d 100644 --- a/slsReceiverSoftware/src/Receiver.cpp +++ b/slsReceiverSoftware/src/Receiver.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/Receiver.h" #include "ClientInterface.h" #include "sls/container_utils.h" diff --git a/slsReceiverSoftware/src/ReceiverApp.cpp b/slsReceiverSoftware/src/ReceiverApp.cpp index fd4aa6116..3980b01a1 100644 --- a/slsReceiverSoftware/src/ReceiverApp.cpp +++ b/slsReceiverSoftware/src/ReceiverApp.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /* slsReceiver */ #include "sls/Receiver.h" #include "sls/container_utils.h" diff --git a/slsReceiverSoftware/src/ThreadObject.cpp b/slsReceiverSoftware/src/ThreadObject.cpp index 18477e912..16d17eaf9 100644 --- a/slsReceiverSoftware/src/ThreadObject.cpp +++ b/slsReceiverSoftware/src/ThreadObject.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package /************************************************ * @file ThreadObject.cpp * @short creates/destroys a thread diff --git a/slsReceiverSoftware/tests/test-CircularFifo.cpp b/slsReceiverSoftware/tests/test-CircularFifo.cpp index f1614f55a..5da9bf39f 100644 --- a/slsReceiverSoftware/tests/test-CircularFifo.cpp +++ b/slsReceiverSoftware/tests/test-CircularFifo.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/CircularFifo.h" #include diff --git a/slsReceiverSoftware/tests/test-GeneralData.cpp b/slsReceiverSoftware/tests/test-GeneralData.cpp index 131748072..7a3466eca 100644 --- a/slsReceiverSoftware/tests/test-GeneralData.cpp +++ b/slsReceiverSoftware/tests/test-GeneralData.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "GeneralData.h" #include "catch.hpp" diff --git a/slsSupportLib/src/ClientSocket.cpp b/slsSupportLib/src/ClientSocket.cpp index 827e0f840..fdf41140f 100644 --- a/slsSupportLib/src/ClientSocket.cpp +++ b/slsSupportLib/src/ClientSocket.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ClientSocket.h" #include "sls/logger.h" #include "sls/sls_detector_defs.h" diff --git a/slsSupportLib/src/DataSocket.cpp b/slsSupportLib/src/DataSocket.cpp index 09c20ebda..0d1b79921 100644 --- a/slsSupportLib/src/DataSocket.cpp +++ b/slsSupportLib/src/DataSocket.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/DataSocket.h" #include "sls/logger.h" #include "sls/sls_detector_funcs.h" diff --git a/slsSupportLib/src/ServerInterface.cpp b/slsSupportLib/src/ServerInterface.cpp index 7e912ab09..92e3d7a67 100644 --- a/slsSupportLib/src/ServerInterface.cpp +++ b/slsSupportLib/src/ServerInterface.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ServerInterface.h" #include "sls/logger.h" #include diff --git a/slsSupportLib/src/ServerSocket.cpp b/slsSupportLib/src/ServerSocket.cpp index a9fafa1da..5daf83dc3 100644 --- a/slsSupportLib/src/ServerSocket.cpp +++ b/slsSupportLib/src/ServerSocket.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ServerSocket.h" #include "sls/ServerInterface.h" diff --git a/slsSupportLib/src/ToString.cpp b/slsSupportLib/src/ToString.cpp index 7d68f2fb9..de920cc05 100644 --- a/slsSupportLib/src/ToString.cpp +++ b/slsSupportLib/src/ToString.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ToString.h" #include "sls/network_utils.h" diff --git a/slsSupportLib/src/UdpRxSocket.cpp b/slsSupportLib/src/UdpRxSocket.cpp index 90ebf284d..18eaf9372 100644 --- a/slsSupportLib/src/UdpRxSocket.cpp +++ b/slsSupportLib/src/UdpRxSocket.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/UdpRxSocket.h" #include "sls/logger.h" #include "sls/network_utils.h" diff --git a/slsSupportLib/src/ZmqSocket.cpp b/slsSupportLib/src/ZmqSocket.cpp index 752934088..5289a1391 100644 --- a/slsSupportLib/src/ZmqSocket.cpp +++ b/slsSupportLib/src/ZmqSocket.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/ZmqSocket.h" #include "sls/logger.h" #include "sls/network_utils.h" //ip diff --git a/slsSupportLib/src/file_utils.cpp b/slsSupportLib/src/file_utils.cpp index a560e6fe0..9c58c5dcf 100644 --- a/slsSupportLib/src/file_utils.cpp +++ b/slsSupportLib/src/file_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/file_utils.h" #include "sls/logger.h" #include "sls/sls_detector_exceptions.h" diff --git a/slsSupportLib/src/md5_helper.cpp b/slsSupportLib/src/md5_helper.cpp index 9af895faa..800d7cedc 100644 --- a/slsSupportLib/src/md5_helper.cpp +++ b/slsSupportLib/src/md5_helper.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/md5_helper.h" #include "sls/md5.h" diff --git a/slsSupportLib/src/network_utils.cpp b/slsSupportLib/src/network_utils.cpp index 56507e8f1..3a44b6fef 100644 --- a/slsSupportLib/src/network_utils.cpp +++ b/slsSupportLib/src/network_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/sls_detector_exceptions.h" #include "sls/network_utils.h" diff --git a/slsSupportLib/src/sls_detector_exceptions.cpp b/slsSupportLib/src/sls_detector_exceptions.cpp index c8753e5db..d5a6ca645 100644 --- a/slsSupportLib/src/sls_detector_exceptions.cpp +++ b/slsSupportLib/src/sls_detector_exceptions.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/sls_detector_exceptions.h" #include "sls/logger.h" namespace sls { diff --git a/slsSupportLib/src/string_utils.cpp b/slsSupportLib/src/string_utils.cpp old mode 100755 new mode 100644 index 94b643363..ba672643e --- a/slsSupportLib/src/string_utils.cpp +++ b/slsSupportLib/src/string_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "sls/string_utils.h" #include "sls/container_utils.h" diff --git a/slsSupportLib/tests/test-Sockets.cpp b/slsSupportLib/tests/test-Sockets.cpp index 9b52ef50c..410bb2b69 100644 --- a/slsSupportLib/tests/test-Sockets.cpp +++ b/slsSupportLib/tests/test-Sockets.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/ClientSocket.h" #include "sls/ServerSocket.h" diff --git a/slsSupportLib/tests/test-StaticVector.cpp b/slsSupportLib/tests/test-StaticVector.cpp index 419ebd770..8b5fa7cca 100644 --- a/slsSupportLib/tests/test-StaticVector.cpp +++ b/slsSupportLib/tests/test-StaticVector.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/StaticVector.h" #include "sls/TypeTraits.h" diff --git a/slsSupportLib/tests/test-Timer.cpp b/slsSupportLib/tests/test-Timer.cpp index d3c80c692..f5733a2de 100644 --- a/slsSupportLib/tests/test-Timer.cpp +++ b/slsSupportLib/tests/test-Timer.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/Timer.h" diff --git a/slsSupportLib/tests/test-ToString.cpp b/slsSupportLib/tests/test-ToString.cpp index 306e5eada..6ccad119b 100644 --- a/slsSupportLib/tests/test-ToString.cpp +++ b/slsSupportLib/tests/test-ToString.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/Pattern.h" #include "sls/TimeHelper.h" diff --git a/slsSupportLib/tests/test-TypeTraits.cpp b/slsSupportLib/tests/test-TypeTraits.cpp index e6cb3104d..7e8190f28 100644 --- a/slsSupportLib/tests/test-TypeTraits.cpp +++ b/slsSupportLib/tests/test-TypeTraits.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/TypeTraits.h" #include diff --git a/slsSupportLib/tests/test-UdpRxSocket.cpp b/slsSupportLib/tests/test-UdpRxSocket.cpp index 05450d114..cca5373c7 100644 --- a/slsSupportLib/tests/test-UdpRxSocket.cpp +++ b/slsSupportLib/tests/test-UdpRxSocket.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/UdpRxSocket.h" #include "sls/sls_detector_exceptions.h" diff --git a/slsSupportLib/tests/test-ZmqSocket.cpp b/slsSupportLib/tests/test-ZmqSocket.cpp index 92dc2c102..5dc51ddc0 100644 --- a/slsSupportLib/tests/test-ZmqSocket.cpp +++ b/slsSupportLib/tests/test-ZmqSocket.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/ZmqSocket.h" diff --git a/slsSupportLib/tests/test-bit_utils.cpp b/slsSupportLib/tests/test-bit_utils.cpp index 9039e2aef..2205c46df 100644 --- a/slsSupportLib/tests/test-bit_utils.cpp +++ b/slsSupportLib/tests/test-bit_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/bit_utils.h" #include diff --git a/slsSupportLib/tests/test-container_utils.cpp b/slsSupportLib/tests/test-container_utils.cpp index 25ad3c331..f791223c9 100644 --- a/slsSupportLib/tests/test-container_utils.cpp +++ b/slsSupportLib/tests/test-container_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/container_utils.h" #include diff --git a/slsSupportLib/tests/test-file_utils.cpp b/slsSupportLib/tests/test-file_utils.cpp index b4f71cfb9..49544c83c 100644 --- a/slsSupportLib/tests/test-file_utils.cpp +++ b/slsSupportLib/tests/test-file_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/file_utils.h" #include diff --git a/slsSupportLib/tests/test-logger.cpp b/slsSupportLib/tests/test-logger.cpp index aa6814d89..c1997c1f6 100644 --- a/slsSupportLib/tests/test-logger.cpp +++ b/slsSupportLib/tests/test-logger.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/logger.h" #include diff --git a/slsSupportLib/tests/test-network_utils.cpp b/slsSupportLib/tests/test-network_utils.cpp index a6464d2b4..7751ad96b 100644 --- a/slsSupportLib/tests/test-network_utils.cpp +++ b/slsSupportLib/tests/test-network_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/network_utils.h" diff --git a/slsSupportLib/tests/test-sls_detector_defs.cpp b/slsSupportLib/tests/test-sls_detector_defs.cpp index fd5001808..077c9ecfa 100644 --- a/slsSupportLib/tests/test-sls_detector_defs.cpp +++ b/slsSupportLib/tests/test-sls_detector_defs.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/sls_detector_defs.h" diff --git a/slsSupportLib/tests/test-string_utils.cpp b/slsSupportLib/tests/test-string_utils.cpp index 941167701..9e8221580 100644 --- a/slsSupportLib/tests/test-string_utils.cpp +++ b/slsSupportLib/tests/test-string_utils.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "catch.hpp" #include "sls/logger.h" #include diff --git a/tests/src/testclient.cpp b/tests/src/testclient.cpp index c212bfb4a..6607b60d1 100644 --- a/tests/src/testclient.cpp +++ b/tests/src/testclient.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "clara.hpp" #include "sls/ClientSocket.h" #include "sls/sls_detector_exceptions.h" diff --git a/tests/src/testserver.cpp b/tests/src/testserver.cpp index 73262f335..81fcac66f 100644 --- a/tests/src/testserver.cpp +++ b/tests/src/testserver.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package #include "clara.hpp" #include "sls/ServerSocket.h" diff --git a/tests/test.cpp b/tests/test.cpp index 6ec78954e..076f489e7 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: LGPL-3.0-or-other +// Copyright (C) 2021 Contributors to the SLS Detector Package // tests-main.cpp // #define CATCH_CONFIG_MAIN // #include "catch.hpp" diff --git a/updateAPIVersion.sh b/updateAPIVersion.sh index b89618f0e..0005ffbce 100755 --- a/updateAPIVersion.sh +++ b/updateAPIVersion.sh @@ -1,7 +1,7 @@ #require 2 arguments, API_NAME API_DIR (relative to package) if [ $# -lt 2 ]; then echo "Wrong usage of updateVersion.sh. Requires atleast 2 arguments [API_NAME, API_DIR]" - return -1 + return [-1] fi API_NAME=$1 diff --git a/updateLicenseNotice.sh b/updateLicenseNotice.sh index 7b63392f9..2c74a6020 100644 --- a/updateLicenseNotice.sh +++ b/updateLicenseNotice.sh @@ -2,25 +2,28 @@ WD=$PWD LICENCE_NOTICE_FILE=$WD/notice_to_add_for_every_file - -if [ $# -lt 1 ]; then - echo "Wrong usage of updateLicenseNotice.sh. Requires atleast 1 argument [RELATIVE PATH]" - return -1 +if [ $# -lt 2 ]; then + echo "Wrong usage of updateLicenseNotice.sh. Requires atleast 1 argument [RELATIVE PATH] [.h/.cpp etc]" + return [-1] fi CURRENT=$WD/$1 +FILE_TYPE=$2 if [ ! -d "$CURRENT" ]; then echo "This directory ${CURRENT} does not exist" - return -1 + return [-1] fi -cd CURRENT +cd $CURRENT -for file in $(find $CURRENT -name "*.h"); do - echo Processing $file - cat notice_to_add_for_every_file $file > $file.modified +for file in $(find $CURRENT -name "*$FILE_TYPE"); do + prefix="/afs/psi.ch/project/sls_det_software/dhanya_softwareDevelopment/mySoft/slsDetectorPackage/" + p=${file#"$prefix"} + echo Processing $p + + cat $LICENCE_NOTICE_FILE $file > $file.modified mv $file.modified $file