Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 159080 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/sbin/etc-update (+26 lines)
Lines 478-486 Link Here
478
declare -i count=0
478
declare -i count=0
479
declare input=0
479
declare input=0
480
declare title="Gentoolkit's etc-update tool!"
480
declare title="Gentoolkit's etc-update tool!"
481
declare stop_after_automatic=0
482
483
while [ $# -gt 0 ] ; do
484
  case "$1" in
485
   -h | --help)
486
      echo "usage: etc-update [-a|--auto-only]"
487
      echo "       etc-update [-h|--help]"
488
      echo ""
489
      echo "       -a, --auto-only   Automerges trivial changes and exits"
490
      echo "       -h, --help        Prints this help"
491
      exit 0
492
      ;;
493
   -a | --auto-only)
494
      echo "Automerging trivial changes only"
495
      stop_after_automatic=1
496
      ;;
497
   * ) 
498
      die "Wrong parameters" 1
499
      ;;
500
  esac
501
  shift
502
done
481
503
482
scan
504
scan
483
505
506
if [[ $stop_after_automatic -eq 1 ]]; then
507
   die "No more trivial merges" 0
508
fi
509
484
until (( ${input} == -1 )); do
510
until (( ${input} == -1 )); do
485
	if (( ${count} == 0 )); then
511
	if (( ${count} == 0 )); then
486
		die "Nothing left to do; exiting. :)" 0
512
		die "Nothing left to do; exiting. :)" 0

Return to bug 159080