From 836e4c51f3c005c3d86a2bb80e6582ebf0b6a4b9 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 19 Oct 2021 14:50:15 +0200 Subject: [PATCH] remove license checks --- checkLicenceNotice.sh | 48 ------------------------------------ notice_to_add_for_every_file | 2 -- updateLicenseNotice.sh | 34 ------------------------- 3 files changed, 84 deletions(-) delete mode 100644 checkLicenceNotice.sh delete mode 100644 notice_to_add_for_every_file delete mode 100644 updateLicenseNotice.sh diff --git a/checkLicenceNotice.sh b/checkLicenceNotice.sh deleted file mode 100644 index 414ee838f..000000000 --- a/checkLicenceNotice.sh +++ /dev/null @@ -1,48 +0,0 @@ -# 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 -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/notice_to_add_for_every_file b/notice_to_add_for_every_file deleted file mode 100644 index 1c092a9b1..000000000 --- a/notice_to_add_for_every_file +++ /dev/null @@ -1,2 +0,0 @@ -# SPDX-License-Identifier: LGPL-3.0-or-other -# Copyright (C) 2021 Contributors to the SLS Detector Package diff --git a/updateLicenseNotice.sh b/updateLicenseNotice.sh deleted file mode 100644 index 450a434c2..000000000 --- a/updateLicenseNotice.sh +++ /dev/null @@ -1,34 +0,0 @@ -# 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 - -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 - - -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 - - cat $LICENCE_NOTICE_FILE $file > $file.modified - - mv $file.modified $file - -done - -cd $WD