Lines Matching +full:spdx +full:- +full:correct
4 # SPDX-License-Identifier: MIT
11 # (b) generate an SPDX file
12 # (c) insert into the SPDX file before the individual files section, SPDX files for
13 # all the third-party header only source libraries used by Arm NN
14 # to create a comprehensive LICENSE.spdx file for the armnn source code distribution
24 result=${result:-/} # to correct for the case where PWD=/
29 exit -2
32 # Check that the third-party subdirectory exists
33 if [ ! -d "third-party" ]; then
34 echo "third-party directory does not exist."
35 exit -3
40 if [[ $? -ne 0 ]]
43 echo "please make armnn compliant with version 3.0 of the REUSE Specification before re-running"
44 exit -4
47 # generate the SPDX file for the overall armnn package
48 reuse spdx > LICENSE.spdx
49 if [[ $? -ne 0 ]]
51 echo "generation of LICENSE.spdx file failed"
52 exit -5
55 echo "LICENSE.spdx file generated"
59 # Add the license info for the third-party packages
64 sed -i '/FileName: \.\/Android.bp/i \
66 # Header only libraries from the armnn source repository third-party folder \
68 ' LICENSE.spdx
70 # iterate over the LICENSE.spdx files in the third-party directory and
71 # put their contents into the top level LICENSE.spdx file
74 for i in ./third-party/**/LICENSE.spdx;
77 sed -i "/FileName: \.\/Android.bp/e cat $i" LICENSE.spdx
78 sed -i '/FileName: \.\/Android.bp/i \
79 ' LICENSE.spdx
83 sed -i '/FileName: \.\/Android.bp/i \
85 ' LICENSE.spdx