Cvt revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 1988 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
# NOTE: This script has probably outlived its usefulness, but in
# case it hasn't, it still references "old" pathnames,
# allowing it to work on any system.
# execute
# Cvt
# This will create required directories and move the
# C. and D. files to the proper place.
#
# use this after running the SetUp script.
#
# use -n option to tell what will be done, but without doing it
#
# NOTE!!
# It does not take care of X. files yet.
set +e
then
echo "exiting"
exit
fi
echo "
This shell (Cvt) will attempt to take the old C. and D. files
that are in $SPOOL and put them in the proper directories for
the new version of uucp.
If the files are not moved, they will never get executed after the
new uucp is installed.
Do you wish to continue (Type y to continue)? \
\c"
read A
if [ x$A != "xy" ]; then exit; fi
while [ $# -gt 0 ]
do
case $1 in
-n) ECHO=echo
shift
;;
*) break
;;
esac
done
cd $SPOOL/C.
for i in C*
do
# S is the 6 character system name
# E is the last 5 characters of C. name
echo Processing: $i
DIR=
if [ -z "$DIR" ]
then
DIR=$S
fi
then
fi
if [ -n "$D" -a -f "$SPOOL/D./$D" ]
fi
done
done