[packages/rpm-build-macros] find-lang: put diagnostics to stderr
glen
glen at pld-linux.org
Tue Jan 6 22:05:07 CET 2015
commit 88cb0d999bac77fdb361e3dc54d2abaf3b6bd00e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jan 6 23:04:24 2015 +0200
find-lang: put diagnostics to stderr
find-lang.sh | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/find-lang.sh b/find-lang.sh
index f924e92..9bf6895 100755
--- a/find-lang.sh
+++ b/find-lang.sh
@@ -97,36 +97,36 @@ while test $# -gt 0; do
case "$1" in
--with-gnome)
GNOME=''
- echo "$PROG: Enabling with GNOME"
+ echo >&2 "$PROG: Enabling with GNOME"
shift
;;
--with-mate)
MATE=''
- echo "$PROG: Enabling with MATE"
+ echo >&2 "$PROG: Enabling with MATE"
shift
;;
--with-kde)
- echo "$PROG: Enabling with KDE"
+ echo >&2 "$PROG: Enabling with KDE"
KDE=''
shift
;;
--with-omf)
- echo "$PROG: Enabling with OMF"
+ echo >&2 "$PROG: Enabling with OMF"
OMF=''
shift
;;
--with-qm)
- echo "$PROG: Enabling with Qt QM"
+ echo >&2 "$PROG: Enabling with Qt QM"
QM=''
shift
;;
--without-mo)
- echo "$PROG: Disabling .mo files"
+ echo >&2 "$PROG: Disabling .mo files"
MO='#'
shift
;;
--all-name)
- echo "$PROG: Enabling with all names"
+ echo >&2 "$PROG: Enabling with all names"
ALL_NAME=''
NO_ALL_NAME='#'
shift
@@ -149,7 +149,7 @@ while test $# -gt 0; do
esac
done
-echo "$PROG/$VERSION: find-lang '$NAME' $APPEND> $OUTPUT"
+echo >&2 "$PROG/$VERSION: find-lang '$NAME' $APPEND> $OUTPUT"
MO_NAME=.$OUTPUT.tmp~
echo '%defattr(644,root,root,755)' > $MO_NAME
@@ -162,7 +162,7 @@ if [ ! -f __find.files ] || [ "$TOP_DIR" -nt __find.files ]; then
s/:.*//
s:'"$TOP_DIR"'::' > __find.files
else
- echo "$PROG: Using cached __find.files"
+ echo >&2 "$PROG: Using cached __find.files"
fi
# .omf
@@ -171,7 +171,7 @@ if [ ! -f __omf.files ] || [ "$TOP_DIR" -nt __omf.files ]; then
sed -e '
s:'"$TOP_DIR"'::' > __omf.files
else
- echo "$PROG: Using cached __omf.files"
+ echo >&2 "$PROG: Using cached __omf.files"
fi
# .qm
@@ -180,7 +180,7 @@ if [ ! -f __qm.files ] || [ "$TOP_DIR" -nt __qm.files ]; then
sed -e '
s:'"$TOP_DIR"'::' > __qm.files
else
- echo "$PROG: Using cached __qm.files"
+ echo >&2 "$PROG: Using cached __qm.files"
fi
# .mo
@@ -225,7 +225,7 @@ s:%lang(C) ::' >> $MO_NAME
if [ ! -f __find.dirs ] || [ "$TOP_DIR" -nt __find.dirs ]; then
find $TOP_DIR -mindepth 1 -type d | sed 's:'"$TOP_DIR"'::' > __find.dirs
else
- echo "$PROG: Using cached __find.dirs"
+ echo >&2 "$PROG: Using cached __find.dirs"
fi
# gnome
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-macros.git/commitdiff/88cb0d999bac77fdb361e3dc54d2abaf3b6bd00e
More information about the pld-cvs-commit
mailing list