-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgettext-0.19.1-alt-gettextize-quiet.diff
42 lines (41 loc) · 1.55 KB
/
gettext-0.19.1-alt-gettextize-quiet.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
diff -puNr gettext-0.19.1.orig/gettext-tools/misc/gettextize.in gettext-0.19.1/gettext-tools/misc/gettextize.in
--- gettext-0.19.1.orig/gettext-tools/misc/gettextize.in 2014-04-23 02:57:42 +0000
+++ gettext-0.19.1/gettext-tools/misc/gettextize.in 2014-06-14 21:36:42 +0000
@@ -189,6 +189,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
--intl install libintl in a subdirectory (deprecated)
--po-dir=DIR specify directory with PO files
--no-changelog don't update or create ChangeLog files
@@ -236,6 +237,7 @@ unset CLICOLOR_FORCE GREP_OPTIONS
# - doit false if --dry-run was given, : otherwise
{
force=0
+ quiet=0
intldir=
podirs=
try_ln_s=false
@@ -252,6 +254,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 )
@@ -1320,10 +1325,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