2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2022 Marcel Telka
17 # Only LICENSE.APACHE2 is used automatically, but we need LICENSE.MIT too.
19 cat "$SOURCE_DIR/LICENSE"
20 printf '\n--- LICENSE.APACHE2 -------------------------------------------------------\n\n'
21 cat "$SOURCE_DIR/LICENSE.APACHE2"
22 printf '\n--- LICENSE.MIT -----------------------------------------------------------\n\n'
23 cat "$SOURCE_DIR/LICENSE.MIT"
24 ) > "$DISTRIBUTION.license"
25 sed -i -e '/^COMPONENT_LICENSE_FILE/d' Makefile
26 git add "$DISTRIBUTION.license"
28 detect_license LICENSE "$DISTRIBUTION.license"
29 gsed -i -e 's/^\(COMPONENT_LICENSE =\t*\)[^\t]*$/\1'"$LICENSE"'/' Makefile
33 # Random directory name
34 COMPONENT_TEST_TRANSFORMS += "-e 's|/tmp/.*/garbage[^/]*|\$$(TMPDIR)|'"