Revision 24167,
963 bytes
checked in by broder, 15 years ago
(diff) |
Import schroot upstream into subversion.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | PACKAGE="$(sed -ne '/^Welcome to /{s/Welcome to[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:]]*\)[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:].-]*\)\..*/\1/p;q}' < NEWS)" |
---|
4 | VERSION="$(sed -ne '/^Welcome to /{s/Welcome to[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:]]*\)[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:].-]*\)\..*/\2/p;q}' < NEWS)" |
---|
5 | |
---|
6 | TAG="release/${PACKAGE}-${VERSION}" |
---|
7 | COMMIT="$(git rev-parse "$TAG^{}")" 2>/dev/null || COMMIT="" |
---|
8 | |
---|
9 | if [ -n "$COMMIT" ]; then |
---|
10 | COMMIT_DATE="$(git log -1 --date=iso "$COMMIT" --pretty="format:%ad")" |
---|
11 | |
---|
12 | RELEASE_DATE="$(date --date="$COMMIT_DATE" '+%d %b %Y')" |
---|
13 | RELEASE_BY="$(git show "$TAG" | sed -ne '/^Tagger:/{s/Tagger:[[:space:]][[:space:]]*//p;q}')" |
---|
14 | else |
---|
15 | RELEASE_DATE="$(date '+%d %b %Y')" |
---|
16 | RELEASE_BY="Unreleased" |
---|
17 | fi |
---|
18 | |
---|
19 | echo "Package: $PACKAGE" |
---|
20 | echo "Version: $VERSION" |
---|
21 | echo "Release-Date: $RELEASE_DATE" |
---|
22 | echo "Released-By: $RELEASE_BY" |
---|
23 | |
---|
24 | if [ -n "$COMMIT" ]; then |
---|
25 | echo "Git-Tag: $TAG" |
---|
26 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.