Run Sunrise-specific checks only when in Sunrise.

This commit is contained in:
Michał Górny 2010-07-13 18:41:13 +02:00
parent b8faaae3c7
commit 671838fee9

View File

@ -362,6 +362,9 @@ main() {
# Creating a new ChangeLog? Let's take a look at the commit message.
if [ ! -f ChangeLog ]; then
[ -n "${trivial}" ] && die "Trivial change for an initial commit? You're joking, right?"
# Sunrise-specific checks.
if [ "$(cat ../../profiles/repo_name 2>/dev/null)" = "sunrise" ]; then
[ -z "${bns}" ] && die 'Please supply the bug number in the initial commit message!'
if [ ! -f metadata.xml ]; then
req cp ../../skel.metadata.xml metadata.xml
@ -370,6 +373,7 @@ main() {
req vcs_add metadata.xml
fi
fi
fi
if [ -z "${trivial}" ]; then
sayv '...and appending to it.'