From a4a684b540a2bbdfed44fa6bd3940bb780c5626f Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 17 Feb 2019 18:10:49 -0800 Subject: [PATCH] Add FIRST BSD license to repo and include with examples (#109) --- LICENSE.txt | 24 ++++++++++++++++++++++++ LICENSE => ThirdPartyNotices.txt | 0 stage4/01-sys-tweaks/01-run.sh | 6 ++++++ 3 files changed, 30 insertions(+) create mode 100644 LICENSE.txt rename LICENSE => ThirdPartyNotices.txt (100%) diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..5776141 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,24 @@ +Copyright (c) 2009-2019 FIRST +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the FIRST nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS``AS IS'' AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/LICENSE b/ThirdPartyNotices.txt similarity index 100% rename from LICENSE rename to ThirdPartyNotices.txt diff --git a/stage4/01-sys-tweaks/01-run.sh b/stage4/01-sys-tweaks/01-run.sh index 9c6c6d8..603634f 100755 --- a/stage4/01-sys-tweaks/01-run.sh +++ b/stage4/01-sys-tweaks/01-run.sh @@ -59,11 +59,17 @@ export PKG_CONFIG_LIBDIR=${ROOTFS_DIR}/usr/lib/arm-linux-gnueabihf/pkgconfig:${R sh -c "cd ${BASE_DIR}/deps && tar cf - examples" | \ sh -c "cd ${ROOTFS_DIR}/home/pi && tar xf -" +for dir in ${ROOTFS_DIR}/home/pi/examples/*; do + cp "${BASE_DIR}/LICENSE.txt" "${dir}/" +done chown -R 1000:1000 "${ROOTFS_DIR}/home/pi/examples" rm -rf "${STAGE_WORK_DIR}/examples" sh -c "cd ${BASE_DIR}/deps && tar cf - examples" | \ sh -c "cd ${STAGE_WORK_DIR} && tar xf -" +for dir in ${STAGE_WORK_DIR}/examples/*; do + cp "${BASE_DIR}/LICENSE.txt" "${dir}/" +done # build zips pushd "${STAGE_WORK_DIR}/examples"