diff options
author | Bjørn Christian Seime <bjorncs@oath.com> | 2017-09-21 11:22:57 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@oath.com> | 2017-09-21 11:23:44 +0200 |
commit | 97a471ed4cb4effcdc2393d997173898658f2146 (patch) | |
tree | 7601e918edb03b7cc9b14ba3bc109e930866cfd3 /dist/release-vespa-rpm.sh | |
parent | 7e8feefa21171980ac5f36b54b75b29e83f2876e (diff) |
Move .tito directory under dist/
Diffstat (limited to 'dist/release-vespa-rpm.sh')
-rwxr-xr-x | dist/release-vespa-rpm.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/release-vespa-rpm.sh b/dist/release-vespa-rpm.sh index 0ff2d9db755..ba9195dff05 100755 --- a/dist/release-vespa-rpm.sh +++ b/dist/release-vespa-rpm.sh @@ -9,7 +9,9 @@ fi readonly VERSION=$1 readonly GITREF=$2 -readonly SPECFILE="dist/vespa.spec" +readonly DIST_DIR="dist" +readonly SPECFILE="${DIST_DIR}/vespa.spec" +readonly TITO_DIR="${DIST_DIR}/.tito" readonly RPM_BRANCH="rpmbuild" readonly CURRENT_BRANCH=$(git branch | grep "^\*" | cut -d' ' -f2) @@ -22,7 +24,8 @@ git push --delete origin $RPM_BRANCH &> /dev/null || true git branch -D $RPM_BRANCH &> /dev/null || true git checkout -b $RPM_BRANCH $GITREF -# Tito expects spec file to be on root +# Tito expects spec file and .tito directory to be on root +git mv $TITO_DIR . git mv $SPECFILE . # Hide pom.xml to avoid tito doing anything to our pom.xml files |