summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2017-09-21 11:22:57 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2017-09-21 11:23:44 +0200
commit97a471ed4cb4effcdc2393d997173898658f2146 (patch)
tree7601e918edb03b7cc9b14ba3bc109e930866cfd3 /dist
parent7e8feefa21171980ac5f36b54b75b29e83f2876e (diff)
Move .tito directory under dist/
Diffstat (limited to 'dist')
-rw-r--r--dist/.tito/packages/.readme3
-rw-r--r--dist/.tito/tito.props6
-rwxr-xr-xdist/release-vespa-rpm.sh7
3 files changed, 14 insertions, 2 deletions
diff --git a/dist/.tito/packages/.readme b/dist/.tito/packages/.readme
new file mode 100644
index 00000000000..ae0c7fe13cc
--- /dev/null
+++ b/dist/.tito/packages/.readme
@@ -0,0 +1,3 @@
+the .tito/packages directory contains metadata files
+named after their packages. Each file has the latest tagged
+version and the project's relative directory. \ No newline at end of file
diff --git a/dist/.tito/tito.props b/dist/.tito/tito.props
new file mode 100644
index 00000000000..db2c33744dc
--- /dev/null
+++ b/dist/.tito/tito.props
@@ -0,0 +1,6 @@
+[buildconfig]
+builder = tito.builder.Builder
+tagger = tito.tagger.VersionTagger
+tag_format = {component}-{version}
+changelog_do_not_remove_cherrypick = 0
+changelog_format = %s (%ae) \ No newline at end of file
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