diff --git a/checkLicenceNotice.sh b/checkLicenceNotice.sh index e50a840eb..a83bb5abf 100644 --- a/checkLicenceNotice.sh +++ b/checkLicenceNotice.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/bin/bash RED='\033[0;31m' NC='\033[0m' # No Color diff --git a/cmk.sh b/cmk.sh old mode 100755 new mode 100644 index bceabc589..0bfe0d918 --- a/cmk.sh +++ b/cmk.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/bin/bash CMAKE="cmake3" BUILDDIR="build" diff --git a/conda-recepie/build.sh b/conda-recepie/build.sh old mode 100755 new mode 100644 index d7558adc5..62b9ca1d9 --- a/conda-recepie/build.sh +++ b/conda-recepie/build.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package mkdir build mkdir install diff --git a/conda-recepie/build_pylib.sh b/conda-recepie/build_pylib.sh old mode 100755 new mode 100644 index fb8723e22..f7cbdc496 --- a/conda-recepie/build_pylib.sh +++ b/conda-recepie/build_pylib.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package echo "|<-------- starting python build" cd python diff --git a/conda-recepie/copy_ctbgui.sh b/conda-recepie/copy_ctbgui.sh index 91ebc1a6d..b4f52efce 100644 --- a/conda-recepie/copy_ctbgui.sh +++ b/conda-recepie/copy_ctbgui.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package mkdir $PREFIX/lib mkdir $PREFIX/bin mkdir $PREFIX/include diff --git a/conda-recepie/copy_gui.sh b/conda-recepie/copy_gui.sh old mode 100755 new mode 100644 index c35d018b0..a6bce55d8 --- a/conda-recepie/copy_gui.sh +++ b/conda-recepie/copy_gui.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #Copy the GUI mkdir -p $PREFIX/bin cp build/install/bin/slsDetectorGui $PREFIX/bin/. diff --git a/conda-recepie/copy_lib.sh b/conda-recepie/copy_lib.sh old mode 100755 new mode 100644 index e153ad869..71870c916 --- a/conda-recepie/copy_lib.sh +++ b/conda-recepie/copy_lib.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package mkdir -p $PREFIX/lib mkdir -p $PREFIX/bin diff --git a/conda-recepie/copy_moench.sh b/conda-recepie/copy_moench.sh index 7b4d34c74..7c4742f32 100644 --- a/conda-recepie/copy_moench.sh +++ b/conda-recepie/copy_moench.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #Copy the Moench executables mkdir -p $PREFIX/bin cp build/install/bin/moench04ZmqProcess $PREFIX/bin/. diff --git a/conda-recepie/run_test.sh b/conda-recepie/run_test.sh old mode 100755 new mode 100644 index e707b86f7..24068d625 --- a/conda-recepie/run_test.sh +++ b/conda-recepie/run_test.sh @@ -1 +1,3 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package ctest -j2 \ No newline at end of file diff --git a/ctbGui/patternGenerator/generate.sh b/ctbGui/patternGenerator/generate.sh old mode 100755 new mode 100644 index 6f5512c8c..0887503be --- a/ctbGui/patternGenerator/generate.sh +++ b/ctbGui/patternGenerator/generate.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package if [ "$#" -eq 0 ]; then echo "Wrong number of arguments: usage should be $0 patname" exit 1 diff --git a/evalVersionVariables.sh b/evalVersionVariables.sh old mode 100755 new mode 100644 index 5824ca13c..6cd4d8b8f --- a/evalVersionVariables.sh +++ b/evalVersionVariables.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package GITREPO1='git remote -v' GITREPO2=" | grep \"fetch\" | cut -d' ' -f1" BRANCH1='git branch -v' diff --git a/genVersionHeader.sh b/genVersionHeader.sh old mode 100755 new mode 100644 index 12b5d8c26..5b1ee9076 --- a/genVersionHeader.sh +++ b/genVersionHeader.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #####! /bin/awk -f diff --git a/slsDetectorServers/compileAllServers.sh b/slsDetectorServers/compileAllServers.sh index b72e980bd..3158da364 100644 --- a/slsDetectorServers/compileAllServers.sh +++ b/slsDetectorServers/compileAllServers.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package if [ $# -eq 0 ]; then declare -a det=("ctbDetectorServer" "gotthardDetectorServer" diff --git a/slsDetectorServers/compileEigerServer.sh b/slsDetectorServers/compileEigerServer.sh index aa3348cf5..94e3343ca 100644 --- a/slsDetectorServers/compileEigerServer.sh +++ b/slsDetectorServers/compileEigerServer.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package declare -a det=("eigerDetectorServer") declare -a deterror=("OK" "OK" "OK" "OK") diff --git a/this_build_bin_path.sh b/this_build_bin_path.sh old mode 100755 new mode 100644 index 646f4175e..8d0528673 --- a/this_build_bin_path.sh +++ b/this_build_bin_path.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #echo $# #if [ $# = 0 ]; then # f=$0 diff --git a/updateAPIVersion.sh b/updateAPIVersion.sh old mode 100755 new mode 100644 index 0005ffbce..499f9c3ed --- a/updateAPIVersion.sh +++ b/updateAPIVersion.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #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]" diff --git a/updateClientAPI.sh b/updateClientAPI.sh old mode 100755 new mode 100644 index 055d4233a..c0458574d --- a/updateClientAPI.sh +++ b/updateClientAPI.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package API_FILE=$PWD/slsSupportLib/include/sls/versionAPI.h arraylength=3 diff --git a/updateLicenseNotice.sh b/updateLicenseNotice.sh index 2c74a6020..f189ed09c 100644 --- a/updateLicenseNotice.sh +++ b/updateLicenseNotice.sh @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: LGPL-3.0-or-other +# Copyright (C) 2021 Contributors to the SLS Detector Package #!/bin/bash WD=$PWD LICENCE_NOTICE_FILE=$WD/notice_to_add_for_every_file @@ -18,7 +20,7 @@ fi cd $CURRENT -for file in $(find $CURRENT -name "*$FILE_TYPE"); do +for file in $(find $CURRENT -name "*$FILE_TYPE" -not -path "*./build/*" -not -path "*./libs/*"); do prefix="/afs/psi.ch/project/sls_det_software/dhanya_softwareDevelopment/mySoft/slsDetectorPackage/" p=${file#"$prefix"} echo Processing $p