Run Sunrise-specific checks only when in Sunrise.
This commit is contained in:
parent
b8faaae3c7
commit
671838fee9
@ -362,12 +362,16 @@ main() {
|
|||||||
# Creating a new ChangeLog? Let's take a look at the commit message.
|
# Creating a new ChangeLog? Let's take a look at the commit message.
|
||||||
if [ ! -f ChangeLog ]; then
|
if [ ! -f ChangeLog ]; then
|
||||||
[ -n "${trivial}" ] && die "Trivial change for an initial commit? You're joking, right?"
|
[ -n "${trivial}" ] && die "Trivial change for an initial commit? You're joking, right?"
|
||||||
[ -z "${bns}" ] && die 'Please supply the bug number in the initial commit message!'
|
|
||||||
if [ ! -f metadata.xml ]; then
|
# Sunrise-specific checks.
|
||||||
req cp ../../skel.metadata.xml metadata.xml
|
if [ "$(cat ../../profiles/repo_name 2>/dev/null)" = "sunrise" ]; then
|
||||||
# Output similar to echangelog.
|
[ -z "${bns}" ] && die 'Please supply the bug number in the initial commit message!'
|
||||||
diff -dup /dev/null metadata.xml
|
if [ ! -f metadata.xml ]; then
|
||||||
req vcs_add metadata.xml
|
req cp ../../skel.metadata.xml metadata.xml
|
||||||
|
# Output similar to echangelog.
|
||||||
|
diff -dup /dev/null metadata.xml
|
||||||
|
req vcs_add metadata.xml
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user