Skip to content

Commit

Permalink
Add write-log.sh script to generate changelog since last version
Browse files Browse the repository at this point in the history
Logs will still need to be manually edited of course
  • Loading branch information
aurimasv committed Jan 14, 2015
1 parent 6da4bf9 commit eb4e52e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

find . -name '.git' -prune -o \
-name '.gitignore' -prune -o \
-name '.xpi' -prune -o \
-name 'fw-update.sh' -prune -o \
-name 'build.sh' -prune -o \
-name '*.xpi' -prune -o \
-name '*.sh' -prune -o \
-name '*~' -prune -o \
-print | xargs zip scaffold.xpi
13 changes: 13 additions & 0 deletions write-log.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

CHANGELOG="Changelog"
TEMPFILE="`mktemp`"
LASTTAG="`git tag -l v[0-9]* | tail -n 1`"

echo "Version $1" > "$TEMPFILE"
git log "$LASTTAG".. --reverse --no-merges --format="* %s" >> "$TEMPFILE"
echo "" >> "$TEMPFILE"

cat "$CHANGELOG" >> "$TEMPFILE"

mv "$TEMPFILE" "$CHANGELOG"

0 comments on commit eb4e52e

Please sign in to comment.