mirror of
https://bitbucket.org/smil3y/katana.git
synced 2025-02-23 10:22:46 +00:00
add a script to generate changelog
This commit is contained in:
parent
fcd2d6c730
commit
31509c39d4
1 changed files with 23 additions and 0 deletions
23
changelog.sh
Executable file
23
changelog.sh
Executable file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
date="$1"
|
||||
packs=("ariya-icons" "kdelibs" "kde-baseapps" "kde-workspace" "kde-extraapps" "kde-l10n")
|
||||
cwd="$(pwd)"
|
||||
if [ -z "$date" ];then
|
||||
echo "Pass a date, e.g. 2014-12-22"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
source "$(dirname $0)/fetch.sh"
|
||||
|
||||
changes=""
|
||||
for p in "${packs[@]}";do
|
||||
echo "Generating changes for $p..."
|
||||
cd "$p"
|
||||
changes+="\nChanges to $p since $date:"
|
||||
changes+="\n$(git log --since=$date --format=' * %s')\n"
|
||||
cd "$cwd"
|
||||
done
|
||||
echo -e "$changes" > changelog.txt
|
Loading…
Add table
Reference in a new issue