3 # ./update-changelogs.sh <options>
4 # Updates ChangeLog files.
6 # e.g. if the main gEDA branch is called master, then to update all
7 # ChangeLogs with revisions since the switch to git, do:
9 # ./update-changelogs.sh 1.0-20070526..master
11 # This should be only be run while preparing a release, in order to
12 # ensure that the released tarballs contain change logs which can be
13 # viewed without access to the git repository.
19 echo "usage: ./update-changelogs.sh 1.0-20070526..master"
21 echo "usage: ./update-changelogs.sh 1.0-20070526..BRANCH_NAME"
25 GCLHEADER
="# Do not edit this file - generated from version control history"
28 if ! git-log
-n1 > /dev
/null
; then
32 for cl
in $
(find .
-name ChangeLog
); do
35 if tail -n1 ${cl} |
grep $GCLFOOTER > /dev
/null
; then
36 echo -e "$GCLHEADER\n\n" > $cl
37 git-log
--pretty=medium $@
-- $dir >> $cl
38 echo -e "\n\n$GCLFOOTER" >> $cl
40 echo "${cl}: Doesn't appear to be git format log, skipping"