--- gettext/gettext-tools/misc/gettextize.in +++ gettext/gettext-tools/misc/gettextize.in @@ -192,6 +192,7 @@ Options: --help print this help and exit --version print version information and exit -f, --force force writing of new files even if old exist + -q, --quiet don't ask acknowledgements --po-dir=DIR specify directory with PO files --no-changelog don't update or create ChangeLog files --symlink make symbolic links instead of copying files @@ -239,6 +240,7 @@ unset CLICOLOR_FORCE GREP_OPTIONS # - doit false if --dry-run was given, : otherwise { force=0 + quiet=0 intldir= podirs= try_ln_s=false @@ -255,6 +257,9 @@ unset CLICOLOR_FORCE GREP_OPTIONS -f | --force | --forc | --for | --fo | --f ) shift force=1 ;; + -q | --quiet | --quie | --qui | --qu | --q ) + shift + quiet=1 ;; --help | --hel | --he | --h ) func_usage; exit 0 ;; --intl | --int | --in | --i ) @@ -1303,10 +1308,12 @@ if $doit; then 5) count="five paragraphs";; *) count="$count paragraphs";; esac + if test $quiet -eq 0; then echo "Press Return to acknowledge the previous $count." # Read from /dev/tty, not stdin, so that gettextize cannot be abused by # non-interactive tools. read dummy < /dev/tty + fi fi exit 0