Revision 24167,
867 bytes
checked in by broder, 15 years ago
(diff) |
Import schroot upstream into subversion.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[24167] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | DEBSOURCE="$(dpkg-parsechangelog | sed -ne '/^Source:/{s/Source:[[:space:]][[:space:]]*//p;q}')" |
---|
| 4 | DEBVERSION="$(dpkg-parsechangelog | sed -ne '/^Version:/{s/Version:[[:space:]][[:space:]]*//p;q}')" |
---|
| 5 | DEBDIST="$(dpkg-parsechangelog | sed -ne '/^Distribution:/{s/Distribution:[[:space:]][[:space:]]*//p;q}')" |
---|
| 6 | DEBURGENCY="$(dpkg-parsechangelog | sed -ne '/^Urgency:/{s/Urgency:[[:space:]][[:space:]]*//p;q}')" |
---|
| 7 | |
---|
| 8 | if [ -z "$DEBSOURCE" ] || [ -z "$DEBVERSION" ] || \ |
---|
| 9 | [ -z "$DEBDIST" ] || [ -z "$DEBURGENCY" ]; then |
---|
| 10 | echo "Error parsing source, version, distribution and urgency from debian/changelog" |
---|
| 11 | exit 1 |
---|
| 12 | fi |
---|
| 13 | |
---|
| 14 | echo "Tagging ${DEBSOURCE}-${DEBVERSION} (dist=${DEBDIST}, urgency=${DEBURGENCY}) as 'debian/${DEBSOURCE}-${DEBVERSION}'" |
---|
| 15 | |
---|
| 16 | git tag -s "debian/${DEBSOURCE}-${DEBVERSION}" -m "${DEBSOURCE}-${DEBVERSION} (dist=${DEBDIST}, urgency=${DEBURGENCY})" |
---|
| 17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.