summaryrefslogtreecommitdiff
path: root/zmore.in
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-02-03 08:53:02 +0100
committerJim Meyering <meyering@redhat.com>2010-02-03 08:53:02 +0100
commit3ea7fe86ac3c1a887038e0e3e1c07ba4634ad1a5 (patch)
tree724c373678f99a6b2a797f0879804b6125c65883 /zmore.in
parent2bea18bc85c6815e742dd3aa287d8f7aa2f0bb74 (diff)
downloadgzip-3ea7fe86ac3c1a887038e0e3e1c07ba4634ad1a5.tar.gz
global: convert indentation-TABs to spaces
Transformed via this shell code: t=$'\t' git ls-files \ | grep -vE '(^|/)((GNU)?[Mm]akefile|ChangeLog)|\.(am|mk)$' \ | grep -vE 'tests/pr/|help2man' \ | xargs grep -lE "^ *$t" \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
Diffstat (limited to 'zmore.in')
-rw-r--r--zmore.in48
1 files changed, 24 insertions, 24 deletions
diff --git a/zmore.in b/zmore.in
index 0f048c9..547c527 100644
--- a/zmore.in
+++ b/zmore.in
@@ -57,36 +57,36 @@ fi
if test $# = 0; then
if test -t 0; then
- echo >&2 "$0: invalid number of operands; try \`$0 --help' for help"
+ echo >&2 "$0: invalid number of operands; try \`$0 --help' for help"
else
- gzip -cdfq | eval ${PAGER-more}
+ gzip -cdfq | eval ${PAGER-more}
fi
else
FIRST=1
for FILE
do
- case $FILE in
- --h*) exec echo "$usage";;
- --v*) exec echo "$version";;
- esac
+ case $FILE in
+ --h*) exec echo "$usage";;
+ --v*) exec echo "$version";;
+ esac
- < "$FILE" || continue
- if test $FIRST -eq 0; then
- echo $n1 "--More--(Next file: $FILE)$n2"
- stty $cb -echo 2>/dev/null
- ANS=`dd bs=1 count=1 2>/dev/null`
- stty $ncb echo 2>/dev/null
- echo " "
- case "$ANS" in
- [eq]) exit;;
- esac
- fi
- if test "$ANS" != 's'; then
- echo "------> $FILE <------"
- gzip -cdfq -- "$FILE" | eval ${PAGER-more}
- fi
- if test -t 1; then
- FIRST=0
- fi
+ < "$FILE" || continue
+ if test $FIRST -eq 0; then
+ echo $n1 "--More--(Next file: $FILE)$n2"
+ stty $cb -echo 2>/dev/null
+ ANS=`dd bs=1 count=1 2>/dev/null`
+ stty $ncb echo 2>/dev/null
+ echo " "
+ case "$ANS" in
+ [eq]) exit;;
+ esac
+ fi
+ if test "$ANS" != 's'; then
+ echo "------> $FILE <------"
+ gzip -cdfq -- "$FILE" | eval ${PAGER-more}
+ fi
+ if test -t 1; then
+ FIRST=0
+ fi
done
fi