Skip to content

Commit 77a619d

Browse files
committed
Update the deploy script directory name
Previously, the deploy script generated a tarball with a directory name of 'python-gssapi-${TAG_NAME}', giving 'python-gssapi-v${VERSION}'. However, to keep compatibility with the GitHub tarball and with the general naming convention, the top-level directory should be 'python-gssapi-${VERSION}' (no 'v' before the version). This commit corrects that.
1 parent a52e4ac commit 77a619d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.travis.before-deploy.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,14 @@ git clean -Xdf
77
mkdir ./tag_build
88

99
# create and checksum the tarball
10-
tar -czvf ./tag_build/${TRAVIS_TAG}.tar.gz --exclude='tag_build' --exclude='.git' --transform "s,^\.,python-gssapi-${TRAVIS_TAG}," .
10+
11+
# no bashisms for portability
12+
if [ x"${TRAVIS_TAG#v[0-9]}" = "x${TRAVIS_TAG}" ]; then
13+
PYTHON_GSSAPI_VERSION=${TRAVIS_TAG}
14+
else
15+
PYTHON_GSSAPI_VERSION=${TRAVIS_TAG#v}
16+
fi
17+
18+
19+
tar -czvf ./tag_build/${TRAVIS_TAG}.tar.gz --exclude='tag_build' --exclude='.git' --transform "s,^\.,python-gssapi-${PYTHON_GSSAPI_VERSION}," .
1120
sha512sum --binary ./tag_build/${TRAVIS_TAG}.tar.gz > ./tag_build/${TRAVIS_TAG}.sha512sum

0 commit comments

Comments
 (0)