katana/changelog.sh
Ivailo Monev b025d3e0e6 generic: kde-baseapps has been merged into kde-workspace
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-05-14 21:38:00 +03:00

31 lines
729 B
Bash
Executable file

#!/bin/bash
set -e
date="$1"
if [ -z "$1" ];then
# git pull --tags
date="$(git log --tags --simplify-by-decoration --pretty='%ad' --date='short' | head -n1)"
fi
packs=("ariya-icons" "kdelibs" "kde-workspace" "kde-extraapps" "kde-l10n")
cwd="$(pwd)"
if [ -z "$date" ];then
echo "Pass a date"
exit 1
fi
# source "$(dirname $0)/fetch.sh"
changes=""
for p in "${packs[@]}";do
echo "Generating changes for $p as of $date..."
cd "$p"
changes+="\nChanges to $p since $date:"
pchanges="$(git log --no-merges --since=$date --format=' * %s' | sort -u)"
if [ -z "$pchanges" ];then
pchanges=" * none"
fi
changes+="\n$pchanges\n"
cd "$cwd"
done
echo -e "$changes" > changelog.txt