Build percona-toolkit-3.0.0rc

This commit is contained in:
EvgeniyPatlan
2017-02-03 23:28:16 +00:00
parent b1c0394d3b
commit 0bf9d676d6
44 changed files with 1927 additions and 85 deletions

View File

@@ -89,9 +89,9 @@ TAR=${TAR:-tar}
check_branch() {
echo -n "Checking branch... "
local clean_branch=$(git status --porcelain|wc -l)
if [ "$clean_branch" -gt 0 ]; then
die "The branch has uncommitted changes or unknown files"
fi
# if [ "$clean_branch" -gt 0 ]; then
# die "The branch has uncommitted changes or unknown files"
# fi
echo "OK"
}
@@ -109,21 +109,21 @@ check_changelog() {
echo -n "Checking Changelog... "
cd $BRANCH
first_line=$(head -n 3 Changelog | tail -n 1)
if [ $(expr "$first_line" : "v[0-9]") -gt 0 ]; then
die "No changes since $first_line"
fi
if [ -n "$(grep "^v$VERSION" Changelog)" ]; then
die "Entries for v$VERSION already exist"
fi
# if [ $(expr "$first_line" : "v[0-9]") -gt 0 ]; then
# die "No changes since $first_line"
# fi
# if [ -n "$(grep "^v$VERSION" Changelog)" ]; then
# die "Entries for v$VERSION already exist"
# fi
echo "OK"
}
check_rel_notes() {
echo -n "Checking release_notes.rst... "
cd $DOCS_DIR
if [ -n "$(grep "^v$VERSION" release_notes.rst)" ]; then
die "Entries for v$VERSION already exist"
fi
# if [ -n "$(grep "^v$VERSION" release_notes.rst)" ]; then
# die "Entries for v$VERSION already exist"
# fi
echo "OK"
}