diff --git a/build.sh b/build.sh index 1709fae5..46fa76f9 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/write-log.sh b/write-log.sh new file mode 100644 index 00000000..2e11e673 --- /dev/null +++ b/write-log.sh @@ -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" \ No newline at end of file