-
Notifications
You must be signed in to change notification settings - Fork 493
Expand file tree
/
Copy pathswitchToAliRootLicense.sh
More file actions
executable file
·26 lines (25 loc) · 1.58 KB
/
switchToAliRootLicense.sh
File metadata and controls
executable file
·26 lines (25 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
cd ../../../../
if [ $(ls | grep GPU | wc -l) != "1" ]; then
echo Incorrect directory
exit 1
fi
git grep -l "^// Copyright 2019-2020 CERN and copyright holders of ALICE O2." | \
grep "^GPU/Common/\|^GPU/GPUTracking/\|^GPU/TPCFastTransformation|^GPU/TPCSpaceChargeBase\|^cmake" | \
xargs -r -n 1 \
sed -i -e '/Copyright 2019-2020 CERN and copyright holders of ALICE O2./,/or submit itself to any jurisdiction/c\
//**************************************************************************\
//* This file is property of and copyright by the ALICE Project *\
//* ALICE Experiment at CERN, All rights reserved. *\
//* *\
//* Primary Authors: Matthias Richter <Matthias.Richter@ift.uib.no> *\
//* for The ALICE HLT Project. *\
//* *\
//* Permission to use, copy, modify and distribute this software and its *\
//* documentation strictly for non-commercial purposes is hereby granted *\
//* without fee, provided that the above copyright notice appears in all *\
//* copies and that both the copyright notice and this permission notice *\
//* appear in the supporting documentation. The authors make no claims *\
//* about the suitability of this software for any purpose. It is *\
//* provided "as is" without express or implied warranty. *\
//**************************************************************************\'