File: bugs

package info (click to toggle)
openbox 3.7~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,892 kB
  • sloc: ansic: 38,834; xml: 1,358; sh: 665; makefile: 613; python: 421
file content (38 lines) | stat: -rwxr-xr-x 929 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh

help() {
  echo "Usage: $0 <revision> [lastrelease]"
  echo
  echo "  <revision>    The revision which should be used for release."
  echo "  [lastrelease] The revision of the most recent release made."
  echo "                By default it uses the most recent release-tag."
  exit 1
}

error() {
  echo "error: $1"
  exit 1
}

test -e "./openbox/openbox.c" || \
  error "must be run from the project's top level directory"

REV="$1"
test -z "$REV" && help
RELEASE_SHA=$(git rev-parse "$REV")
test $? = 0 || error "revision $REV not found"

LAST="$2"
if test -z "$LAST"; then
    LAST=$(git describe --match 'release-*' $REV)
    test $? = 0 || \
	error "unable to find last release"
fi

#### CHANGELOG #####
git log --no-merges $LAST..$REV --oneline|egrep '[bB][uU][Gg] #?[0-9]+'
git log --no-merges $LAST..$REV --oneline | \
  perl -n -e'/[bB][uU][Gg] #?([0-9]+)/ && print "#$1, "'
perl -e'print "\b\b \n"'

exit 0