From dc84a744bf65b3a37747aefeece3794cb8bf5bf6 Mon Sep 17 00:00:00 2001 From: Alexander Hill Date: Sat, 17 Jan 2026 15:08:56 -0500 Subject: [PATCH] Adding a visual presentation of licensing --- README.md | 2 ++ licensebar.sh | 29 +++++++++++++++++++++++++++++ licensebar.svg | 9 +++++++++ 3 files changed, 40 insertions(+) create mode 100755 licensebar.sh create mode 100644 licensebar.svg diff --git a/README.md b/README.md index 0b248c1..c9ee01f 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ While it may sound too good to be true, that's because it is. Maple Linux does n Maple Linux is built upon software created by various developers, and is distributed under various licenses as a result. While it isn't one of the main goals of the system, especially since Linux itself is copyleft, I aim to create an operating system that's as free as I can reasonably make it. +![Licensing Summary](licensebar.svg) + | Software | Copyright Holder | License | Alignment | | ----------------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------------- | ------------------ | | Autoconf | Free Software Foundation, Inc. | GNU General Public License version 3 | Copyleft | diff --git a/licensebar.sh b/licensebar.sh new file mode 100755 index 0000000..3932527 --- /dev/null +++ b/licensebar.sh @@ -0,0 +1,29 @@ +#!/bin/sh -e +# Usage: ./licensebar.sh +# Yes, this is cursed, but it was the simplest way I could think of automating this. ~ahill +BAR_BORDER=3 +BAR_HEIGHT=16 +BAR_TOTAL=$(expr $1 + $2 + $3 + $4 + $5 + $6) +BAR_WIDTH=1024 + +BAR_END=$(expr $BAR_WIDTH - $BAR_BORDER) +BAR_INNER=$(expr $BAR_WIDTH - \( 2 \* $BAR_BORDER \)) +BAR_OFFSET=$BAR_BORDER + +render_segment() { + size=$(printf %.0f $(echo "($BAR_INNER / $BAR_TOTAL) * $2" | bc -l)) + echo "" + BAR_OFFSET=$(expr $BAR_OFFSET + $size) +} + +echo "" +echo "" + +render_segment blue $1 +render_segment cornflowerblue $2 +render_segment white $3 +render_segment mediumpurple $4 +render_segment indianred $5 +render_segment crimson $6 + +echo "" diff --git a/licensebar.svg b/licensebar.svg new file mode 100644 index 0000000..6a84617 --- /dev/null +++ b/licensebar.svg @@ -0,0 +1,9 @@ + + + + + + + + +