mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-01 18:25:59 +00:00
Build percona-toolkit-3.0.0rc
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user