Commit 3e6715f7 authored by Melroy van den Berg's avatar Melroy van den Berg
Browse files

Introduce nr of changes

parent 7c93160d
Pipeline #2321 failed with stage
in 48 seconds
create_badge:
image: python:3.9-alpine
script:
- pip install anybadge
- nr_of_changes=./calc_changes.sh number
- anybadge -l Nr of Changes -v $nr_of_changes -f changes.svg --color=#97CA00
#!/usr/bin/env bash
# Calculates the number of changes done (using KERNEL_CHANGES.md)
#
# To get only the number output, use:
# ./calc_changes.sh number
actual_changes=$(grep '=\|is not set' KERNEL_CHANGES.md)
nr_of_changes=$(echo "$actual_changes" | wc -l)
echo "Changes vs Vanilla kernel: $nr_of_changes"
if [[ "$1" = "number" ]]; then
echo $nr_of_changes
else
echo "Changes vs Vanilla kernel: $nr_of_changes"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment