2014-12-22 21:23:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2015-07-19 15:32:50 +00:00
|
|
|
date="$1"
|
|
|
|
if [ -z "$1" ];then
|
2015-08-30 21:11:25 +03:00
|
|
|
# git pull --tags
|
2015-07-19 15:32:50 +00:00
|
|
|
date="$(git log --tags --simplify-by-decoration --pretty='%ad' --date='short' | head -n1)"
|
|
|
|
fi
|
2014-12-22 21:23:12 +00:00
|
|
|
packs=("ariya-icons" "kdelibs" "kde-baseapps" "kde-workspace" "kde-extraapps" "kde-l10n")
|
|
|
|
cwd="$(pwd)"
|
|
|
|
if [ -z "$date" ];then
|
2015-01-15 00:38:04 +00:00
|
|
|
echo "Pass a date"
|
2014-12-22 21:23:12 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2015-08-30 21:11:25 +03:00
|
|
|
# source "$(dirname $0)/fetch.sh"
|
2014-12-22 21:23:12 +00:00
|
|
|
|
|
|
|
changes=""
|
|
|
|
for p in "${packs[@]}";do
|
2015-01-15 00:38:04 +00:00
|
|
|
echo "Generating changes for $p as of $date..."
|
2014-12-22 21:23:12 +00:00
|
|
|
cd "$p"
|
|
|
|
changes+="\nChanges to $p since $date:"
|
2015-03-01 06:27:27 +00:00
|
|
|
pchanges="$(git log --no-merges --since=$date --format=' * %s' | sort -u)"
|
2014-12-26 20:58:25 +00:00
|
|
|
if [ -z "$pchanges" ];then
|
|
|
|
pchanges=" * none"
|
|
|
|
fi
|
|
|
|
changes+="\n$pchanges\n"
|
2014-12-22 21:23:12 +00:00
|
|
|
cd "$cwd"
|
|
|
|
done
|
|
|
|
echo -e "$changes" > changelog.txt
|