Revision 24167,
641 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 | set -e |
---|
4 | |
---|
5 | PACKAGE="$(sed -ne '/^Welcome to /{s/Welcome to[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:]]*\)[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:].-]*\)\..*/\1/p;q}' < NEWS)" |
---|
6 | VERSION="$(sed -ne '/^Welcome to /{s/Welcome to[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:]]*\)[[:space:]][[:space:]]*\([[:alnum:]][[:alnum:].-]*\)\..*/\2/p;q}' < NEWS)" |
---|
7 | |
---|
8 | if [ -z "$PACKAGE" ] || [ -z "$VERSION" ]; then |
---|
9 | echo "Error parsing package name and version from NEWS" |
---|
10 | exit 1 |
---|
11 | fi |
---|
12 | |
---|
13 | echo "Tagging ${PACKAGE} version ${VERSION} as 'release/${PACKAGE}-${VERSION}'" |
---|
14 | git tag -s "release/${PACKAGE}-${VERSION}" -m "${PACKAGE} version ${VERSION}" |
---|
Note: See
TracBrowser
for help on using the repository browser.