Something went wrong. Try again.
forked from libreqoe/libreqos
Something went wrong. Try again.
123456789101112131415161718192021222324#!/bin/bash
# Checks all Rust projects for accidental inclusion of something GPL-3# licensed.
PROJECTS="lqos_bus lqos_config lqos_heimdall lqos_node_manager lqos_python lqos_queue_tracker lqos_setup lqos_sys lqos_utils lqosd lqusers xdp_pping"TOOL="cargo license --help"
# Check that the tool existsif ! $TOOL &> /dev/nullthen echo "Cargo License Tool not Found. Installing it." cargo install cargo-licensefi
# Check every projectfor project in $PROJECTSdo pushd $project > /dev/null if cargo license | grep "GPL-3"; then echo "Warning: GPL3 detected in dependencies for $project" fi popd > /dev/nulldone