GREEN=$'\e[32m'
changelog=0
+disable_repoman=0
force=0
noupdate=0
quiet=0
fi
}
+repoman_check() {
+ if [[ "$disable_repoman" == "0" ]] ; then
+ ebegin "Running repoman"
+ PORTDIR_OVERLAY=$(dirname $(dirname $(pwd)))
+ export PORTDIR_OVERLAY
+ repoman
+ eend $?
+ else
+ return 0
+ fi
+}
+
svn_add() {
ebegin "Adding local changes to working copy"
if [[ "$verbose" == "1" ]] ; then
}
svn_commit() {
- if [[ "$verbose" == "1" ]] ; then
- echo
- echo "${GREEN}The following local changes will be committed to the repository:${NORMAL}"
- echo
- svn status
- fi
+ echo
+ echo "${GREEN}The following local changes will be committed to the repository:${NORMAL}"
+ echo
+ svn status
if [[ "$quiet" == "0" ]] ; then
echo
${BOLD}Usage:${NORMAL} ${HILITE}sunrise-commit${NORMAL} [ ${GOOD}options${NORMAL} ] ${BRACKET}message${NORMAL}
${GOOD}options${NORMAL} are:
- ${BOLD}-c, --changelog${NORMAL} Create a ChangeLog entry using ${BRACKET}message${NORMAL}
- ${BOLD}-f, --force${NORMAL} Commit even if no ebuilds are present
- ${BOLD}-h, --help${NORMAL} Show help
- ${BOLD}-n, --noupdate${NORMAL} Don't update from repository before committing
- ${BOLD}-q, --quiet${NORMAL} Don't ask for confirmation
- ${BOLD}-v, --verbose${NORMAL} Show more detailed information during commit
+ ${BOLD}-c, --changelog${NORMAL} Create a ChangeLog entry using ${BRACKET}message${NORMAL}
+ ${BOLD}-d, --disable-repoman${NORMAL} Skip repoman check
+ ${BOLD}-f, --force${NORMAL} Commit even if no ebuilds are present
+ ${BOLD}-h, --help${NORMAL} Show help
+ ${BOLD}-n, --noupdate${NORMAL} Don't update from repository before committing
+ ${BOLD}-q, --quiet${NORMAL} Don't ask for confirmation
+ ${BOLD}-v, --verbose${NORMAL} Show more detailed information during commit
${BRACKET}message${NORMAL} is:
Commit message describing changes made. ${BOLD}Please include the ebuild's name here.${NORMAL}
[[ -z "$1" ]] && usage 1
-if [[ -z "$(echo `svn status`)" ]] ; then
- ewarn "No changes found in current directory."
- exit 1
-fi
-
while [[ $# > 0 ]] ; do
case "$1" in
--changelog|-c)
changelog=1
shift ;;
+ --disable-repoman|-d)
+ disable_repoman=1
+ shift ;;
+
--force|-f)
force=1
shift ;;
exit 1
fi
+if [[ -z "$(echo `svn status`)" ]] ; then
+ ewarn "No changes found in current directory."
+ exit 1
+fi
+
svn_up || exit $?
create_digests || exit $?
changelog_append "$1" || exit $?
svn_add || exit $?
+#repoman_check || exit $?
svn_commit "$*" || exit $?