Lines 478-512
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 |
503 |
|
481 |
|
504 |
scan |
482 |
scan |
505 |
|
483 |
|
506 |
if [[ $stop_after_automatic -eq 1 ]]; then |
|
|
507 |
die "No more trivial merges" 0 |
508 |
fi |
509 |
|
510 |
until (( ${input} == -1 )); do |
484 |
until (( ${input} == -1 )); do |
511 |
if (( ${count} == 0 )); then |
485 |
if (( ${count} == 0 )); then |
512 |
die "Nothing left to do; exiting. :)" 0 |
486 |
die "Nothing left to do; exiting. :)" 0 |