Closed AlexandreEichenberger closed 3 years ago
These two commands should do it for all the .h
and CMakeLists.txt
files under src
subdirectory:
for f in $(find src -name "*.h"); do sed -i -e '1s/^/\/*\n * SPDX-License-Identifier: Apache-2.0\n *\/\n\n/' $f; done
for f in $(find src -name CMakeLists.txt); do sed -i -e '1s/^/# SPDX-License-Identifier: Apache-2.0\n\n/' $f; done
Love to see others using sed too... it can be addictive :-) Will do once travis is healthy again. Right now, it seems really flaky.
done
ONNX has requested that they would prefer us to add the Apache license to each of the files:
ONNX/Readme.md listed as having an Apache 2.0 license and with this string:
and a h file with this string:
and a cmake file
Any takers?