blob: 2b002b10f3532565e2136401d6a65d8f8261d001 [file] [log] [blame]
johnnyslt0f744332015-01-12 08:10:55 -02001#!/bin/sh
2
johnnyslt0f744332015-01-12 08:10:55 -02003export Changelog=Changelog.txt
4
5if [ -f $Changelog ];
6then
7 rm -f $Changelog
8fi
9
10touch $Changelog
11
12# Print something to build output
13echo ${bldppl}"Generating changelog..."${txtrst}
14
pimpmaneaton1420dfd2019-01-16 14:00:20 -070015for i in $(seq 15);
johnnyslt0f744332015-01-12 08:10:55 -020016do
17export After_Date=`date --date="$i days ago" +%m-%d-%Y`
18k=$(expr $i - 1)
19 export Until_Date=`date --date="$k days ago" +%m-%d-%Y`
20
21 # Line with after --- until was too long for a small ListView
22 echo '====================' >> $Changelog;
23 echo " "$Until_Date >> $Changelog;
24 echo '====================' >> $Changelog;
25 echo >> $Changelog;
26
DennySPB847afd42020-04-10 11:04:55 +030027while read path;
28do
29 Git_log=`git --git-dir ./${path}/.git log --after=$After_Date --until=$Until_Date --pretty=tformat:"%h %s [%an]" --abbrev-commit --abbrev=7`
30 if [ ! -z "${Git_log}" ]; then
31 echo "\n* ${path}\n${Git_log}\n" >> $Changelog;
32 fi
33done < ./.repo/project.list;
34
35echo "" >> $Changelog;
johnnyslt0f744332015-01-12 08:10:55 -020036done
37
38sed -i 's/project/ */g' $Changelog
39
david769eb1f2015-02-02 08:52:14 +010040cp $Changelog $OUT/system/etc/
johnnyslt0f744332015-01-12 08:10:55 -020041cp $Changelog $OUT/
42rm $Changelog