Marcel Telka
2023-12-13 6c0fc481746b82875d0c8ef4a4625ec33a163f8a
tools/license-detector: addition of newline should work with POSIX sed

2 files modified
6 ■■■■■ changed files
tools/licenses/license.BSD-2-Clause.filter 3 ●●●● patch | view | raw | blame | history
tools/licenses/license.BSD-3-Clause.filter 3 ●●●● patch | view | raw | blame | history
tools/licenses/license.BSD-2-Clause.filter
@@ -18,7 +18,8 @@
sed \
    -e 's/`\{1,2\}/"/g' -e "s/'\{1,2\}/\"/g" \
    -e 's/[12]\./*/g' \
    -e 's/\([^ ]\) \*/\1\n*/g' \
    -e 's/\([^ ]\) \*/\1\
*/g' \
| sed \
    -e 's/\* *//g' \
    -e 's/THIS SOFTWARE/THIS/I' \
tools/licenses/license.BSD-3-Clause.filter
@@ -19,7 +19,8 @@
    -e 's/``/"/g' -e "s/''/\"/g" \
    -e 's/[123]\./*/g' \
    -e 's/- /* /g' \
    -e 's/\([^ ]\) \*/\1\n*/g' \
    -e 's/\([^ ]\) \*/\1\
*/g' \
| sed \
    -e 's/\* *//g' \
    -e 's/\(with or without modification,\) .* \(permitted provided\)/\1 REPLACEABLE \2/I' \