Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > e744c22482f393f17e5cc2f7c12c7d9b > files > 2

gettext-0.17-alt3.src.rpm

--- gettext-0.14.1/gettext-tools/misc/gettextize.in.orig	2004-01-20 14:30:06 +0300
+++ gettext-0.14.1/gettext-tools/misc/gettextize.in	2004-02-26 12:54:27 +0300
@@ -123,6 +123,7 @@ Options:
       --version        print version information and exit
   -c, --copy           copy files instead of making symlinks
   -f, --force          force writing of new files even if old exist
+  -q, --quiet          don't ask acknowledgements
       --intl           install libintl in a subdirectory
       --no-changelog   don't update or create ChangeLog files
   -n, --dry-run        print modifications but don't perform them
@@ -159,6 +160,7 @@ func_fatal_error ()
 # - doit            false if --dry-run was given, : otherwise
 {
   force=0
+  quiet=0
   intldir=
   try_ln_s=:
   do_changelog=:
@@ -175,6 +177,9 @@ func_fatal_error ()
       -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 )
@@ -1078,10 +1083,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