commit_category="$(echo `pwd` | awk -F/ '{ print $(NF-1) }')"
commit_package="$(echo `pwd` | awk -F/ '{ print $NF }')"
-commit_status="$(echo `svn status`)"
num_new_dirs=0
opt_changelog=0
opt_noformat=0
repoman_check() {
if [[ "$opt_norepoman" == "0" ]] ; then
- if [[ "$(svn status)" =~ '\.ebuild' ]] ; then
+ if [[ "$(echo `svn status`)" =~ '\.ebuild' ]] ; then
ebegin "Running repoman"
export PORTDIR_OVERLAY="$(dirname $(dirname $(pwd)))"
repoman
done
if [[ "$opt_noformat" == "0" ]] ; then
- commit_status="$(echo `svn status`)"
+ local commit_status="$(echo `svn status`)"
if [[ "$commit_status" =~ '\.ebuild' ]] ; then
commit_message="${commit_category}/${commit_package}: ${commit_message}"
else
exit 1
fi
-if [[ -z "$commit_status" ]] ; then
- ewarn "No changes found in current directory tree."
- exit 1
-fi
-
svn_up || exit $?
[[ ! -e metadata.xml ]] && cp ../../skel.metadata.xml metadata.xml >/dev/null 2>&1
changelog_append "$*" || exit $?
create_digests || exit $?
svn_add || exit $?
+
+if [[ -z "$(svn status)" ]] ; then
+ echo "!!! Error: No changes found in current directory tree. Aborting commit."
+ exit 1
+fi
+
repoman_check || exit $?
svn_commit "$*" || exit $?