Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vi/recover move recover.script to virecover
details: https://anonhg.NetBSD.org/src/rev/837e78506318
branches: trunk
changeset: 508458:837e78506318
user: aymeric <aymeric%NetBSD.org@localhost>
date: Wed Apr 11 20:24:17 2001 +0000
description:
move recover.script to virecover
diffstat:
usr.bin/vi/recover/recover.script | 51 ---------------------------------------
usr.bin/vi/recover/virecover | 51 +++++++++++++++++++++++++++++++++++++++
2 files changed, 51 insertions(+), 51 deletions(-)
diffs (110 lines):
diff -r 6a1b8baa3637 -r 837e78506318 usr.bin/vi/recover/recover.script
--- a/usr.bin/vi/recover/recover.script Wed Apr 11 20:13:52 2001 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-#!/bin/sh -
-#
-# $NetBSD: recover.script,v 1.3 2001/03/31 11:37:51 aymeric Exp $
-#
-# @(#)recover.in 8.8 (Berkeley) 10/10/96
-#
-# Script to recover nvi edit sessions.
-
-RECDIR="/var/tmp/vi.recover"
-SENDMAIL="/usr/sbin/sendmail"
-
-echo 'Recovering nvi editor sessions.'
-
-# Check editor backup files.
-vibackup=`echo $RECDIR/vi.*`
-if [ "$vibackup" != "$RECDIR/vi.*" ]; then
- for i in $vibackup; do
- # Only test files that are readable.
- if test ! -r $i; then
- continue
- fi
-
- # Unmodified nvi editor backup files either have the
- # execute bit set or are zero length. Delete them.
- if test -x $i -o ! -s $i; then
- rm $i
- fi
- done
-fi
-
-# It is possible to get incomplete recovery files, if the editor crashes
-# at the right time.
-virecovery=`echo $RECDIR/recover.*`
-if [ "$virecovery" != "$RECDIR/recover.*" ]; then
- for i in $virecovery; do
- # Only test files that are readable.
- if test ! -r $i; then
- continue
- fi
-
- # Delete any recovery files that are zero length, corrupted,
- # or that have no corresponding backup file. Else send mail
- # to the user.
- recfile=`awk '/^X-vi-recover-path:/{print $2}' < $i`
- if test -n "$recfile" -a -s "$recfile"; then
- $SENDMAIL -t < $i
- else
- rm $i
- fi
- done
-fi
diff -r 6a1b8baa3637 -r 837e78506318 usr.bin/vi/recover/virecover
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/usr.bin/vi/recover/virecover Wed Apr 11 20:24:17 2001 +0000
@@ -0,0 +1,51 @@
+#!/bin/sh -
+#
+# $NetBSD: virecover,v 1.1 2001/04/11 20:24:17 aymeric Exp $
+#
+# @(#)recover.in 8.8 (Berkeley) 10/10/96
+#
+# Script to recover nvi edit sessions.
+
+RECDIR="/var/tmp/vi.recover"
+SENDMAIL="/usr/sbin/sendmail"
+
+echo 'Recovering nvi editor sessions.'
+
+# Check editor backup files.
+vibackup=`echo $RECDIR/vi.*`
+if [ "$vibackup" != "$RECDIR/vi.*" ]; then
+ for i in $vibackup; do
+ # Only test files that are readable.
+ if test ! -r $i; then
+ continue
+ fi
+
+ # Unmodified nvi editor backup files either have the
+ # execute bit set or are zero length. Delete them.
+ if test -x $i -o ! -s $i; then
+ rm $i
+ fi
+ done
+fi
+
+# It is possible to get incomplete recovery files, if the editor crashes
+# at the right time.
+virecovery=`echo $RECDIR/recover.*`
+if [ "$virecovery" != "$RECDIR/recover.*" ]; then
+ for i in $virecovery; do
+ # Only test files that are readable.
+ if test ! -r $i; then
+ continue
+ fi
+
+ # Delete any recovery files that are zero length, corrupted,
+ # or that have no corresponding backup file. Else send mail
+ # to the user.
+ recfile=`awk '/^X-vi-recover-path:/{print $2}' < $i`
+ if test -n "$recfile" -a -s "$recfile"; then
+ $SENDMAIL -t < $i
+ else
+ rm $i
+ fi
+ done
+fi
Home |
Main Index |
Thread Index |
Old Index