File: update-changelog

package info (click to toggle)
lazygal 0.11-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 2,192 kB
  • sloc: python: 6,214; javascript: 1,095; sh: 21; makefile: 2
file content (21 lines) | stat: -rwxr-xr-x 631 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# Small script to easily generate a ChangeLog from git log.

SCM=$(which git)
AWK=$(which awk)

repo=$(dirname $0)/..

$SCM log --format="%d|%cd|%s" --date=short -C $repo |\
    $AWK -F'|'\
        '/^\|/    { print "  * " $3 }\
         /^\ \(HEAD/ { print "\nLazygal ##DEVELOPMENT VERSION## (" $2 ")";\
                    print "  * " $3\
                  }
         /^\ \(tag\:\ / { \
                    gsub(/\ \(tag\:\ /,"",$1);\
                    gsub(/\)/,"",$1);\
                    print "\nLazygal " $1 " (" $2 ")";\
                    print "  * " $3\
                  }'\
    > $repo/ChangeLog-full