1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-14 07:30:21 +00:00

Remove checksum scripts. (#312)

These are no longer used in our installation / deployment
process.
This commit is contained in:
Bruce Mitchener 2021-01-29 01:19:21 +07:00 committed by GitHub
parent ae6c1dbd6a
commit b766153e85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 403 deletions

View File

@ -1,78 +0,0 @@
#! /bin/sh
# First line invokes Bourne shell
# ============================================================================
# ABSTRACT:
# Bourne script for checking/generating checksums for files contained
# in a specific Medley release directory. Should normally be invoked
# by ldechecksum and expects the calling script to be connected to
# the medley installation directory. Also, expects the directory
# <medleydir>checksumdir to exist. "< W > ..." warning and "< E > ..."
# error messages will be issued.
#
# SYNOPSIS:
# checksum -cg dir
#
# -c generates a FOO.check file and compares it to FOO.sum.
# -g generates a FOO.sum file.
# NOTE: One of -c or -g is required.
# dir the name of the Medley release directory containing files
# for which checksum checking/generating will be performed.
#
# CHANGES:
# 05-05-89 Carl Gadener : added "trap" to delete created file if
# interrupted. Also "FOO.check" files are now
# deleted after being used.
# 12-14-88 Carl Gadener : Had to rewrite it for Bourne shell because
# the "foreach" loop in csh doesn't accept
# enough args.
# ============================================================================
#
if test $# -lt 2
then
echo "Usage: checksum -cg dir"
exit 2
else
case $1 in
-c) suffix="check"
operation="Verifying"
;;
-g) suffix="sum"
operation="Generating checksum for"
;;
*) echo "Usage: checksum -cg dir"
exit 2 ;;
esac
fi
if test -d $2
then
resultdir=`pwd`/checksumdir
resultfile=`echo "$2" | sed s/\\\//-/g`
# If interrupted be sure to delete created file
trap "/bin/rm -f $resultdir/$resultfile.$suffix ; exit" 1 2 3 15
cd $2
echo "$operation: $2"
echo "Checksum for directory: $2" > $resultdir/$resultfile.$suffix
echo "" >> $resultdir/$resultfile.$suffix
for file in `/bin/ls -FL | /bin/grep -v "/" `
do
echo "E > `sum $file` $file" >> $resultdir/$resultfile.$suffix
done
if test "$1" = "-c" # Verifying
then
/bin/diff $resultdir/$resultfile.sum \
$resultdir/$resultfile.check | grep "<"
# Remove check-file after check has been done
/bin/rm -f $resultdir/$resultfile.check
fi
else
echo "< W > `pwd`/$2 : Directory not installed"
fi

View File

@ -1,88 +0,0 @@
January 19, 1989
===========================================================================
CHECKSUM CONTROL FOR FILES UNDER MEDLEY
===========================================================================
If you encounter inexplicable problems shortly after you install Medley,
they may be due to files being corrupted. We recommend that you verify the
checksums of your installed files.
===========================================================================
DESCRIPTION
===========================================================================
The script generates checksum files named FOO.check and compares them to
the released FOO.sum residing in the /checksumdir subdirectory. The
checksum script reports inconsistent files, the correct checksum values for
the files, and an error message. The checksum of individual files can be
verified with the UNIX command "sum filename".
===========================================================================
COMMANDS
===========================================================================
ldechecksum [-cg] medleydir [ dir | dirgroup ]
-c Generates checksums for your installed files and compares
them with correct values. This is the default action.
-g Generates checksums for the files specified.
medleydir Name of the Medley installation directory. Usually its
/usr/local/lde.
dir Any specific directory residing under medleydir. Only
relative pathnames with respect to medleydir are accepted.
dirgroup The directory group, either all (the default) or lisp,
which includes the X/install.sunos3, X/install.sunos4,
X/lisplibrary and X/lispsysouts directories.
===========================================================================
OUTPUT
===========================================================================
As it begins checking each directory, the script prints a message
in the form:
Checking directory: /usr/local/lde/subdir
Error and warning messages may be one of two forms:
< E > 32711 49 4045XLPSTREAM.DFASL
indicates that file 4045XLPSTREAM.DFASL is erroneous or does not
reside in the directory. The correct checksum of 32711, together
with the size (49kbytes) of the file, are shown.
< W > /usr/local/lde/fonts/display/chinese : Directory not installed
indicates that Chinese fonts were not installed or were removed
after Medley was installed.
===========================================================================
EXAMPLES:
===========================================================================
prompt% ldechecksum /usr/local/lde
All files in the installed Medley directories in /usr/local/lde are
checked.
prompt% ldechecksum /usr/local/somedir/lde lisp
This example checks all files in:
/usr/local/somedir/lde/install.sunos3
/usr/local/somedir/lde/install.sunos4
/usr/local/somedir/lde/lisplibrary
/usr/local/somedir/lde/lispsysouts
prompt% cd /usr/local/lde
prompt% ldechecksum -c . fonts/display
This example checks only the display font directories. The period
(.) is used because you are positioned under the current Medley
installation directory.

View File

@ -1,67 +0,0 @@
January 19, 1989
======================================================================
HOW TO GENERATE CHECKSUMFILES FOR MEDLEY
======================================================================
===========================================================================
COMMANDS
===========================================================================
ldechecksum [-cg] medleydir [ dir | dirgroup ]
-c Generates checksums for your installed files and compares
them with correct values. This is the default action.
-g Generates checksums for the files specified.
medleydir Name of the Medley installation directory. Usually its
/usr/local/lde.
dir Any specific directory residing under medleydir. Only
relative pathnames with respect to medleydir are accepted.
dirgroup The directory group, either all (the default) or lisp,
which includes the X/install.sunos3, X/install.sunos4,
X/lisplibrary and X/lispsysouts directories.
===========================================================================
REQUIREMENTS
===========================================================================
Before generating checksumfiles, make sure that the subdirectory
"checksumdir" resides under the local Medley directory (normally
/usr/local/lde/checksumdir).
Make also sure that a copy of the scripts "ldechecksum" and "checksum"
reside under the subdirectory "checksumdir".
NOTE: Don't forget to give the "-g" parameter to generate the
checksumfiles.
======================================================================
EXAMPLES
======================================================================
prompt% ldechecksum -g /usr/local/lde
All checksumfiles for the Medley directories residing in
/usr/local/lde will be generated
prompt% ldechecksum /usr/local/somedir/lde lisp
This example generates checksumfiles for all files in:
/usr/local/somedir/lde/install.sunos3
/usr/local/somedir/lde/install.sunos4
/usr/local/somedir/lde/lisplibrary
/usr/local/somedir/lde/lispsysouts
prompt% cd /usr/local/lde
prompt% ldechecksum -c . fonts/display
This example only generates checksumfiles for the display font
directories. The period (.) is used because you are positioned
under the current Medley installation directory.

View File

@ -1,170 +0,0 @@
#! /bin/sh
# First line invokes Bourne shell
# ============================================================================
# ABSTRACT:
# Bourne script for checking/generating checksums files for the
# Medley release. The script will generate a checksum-file for each
# release directory, containing the corresponding checksums for all
# files residing in the directory. The files having incorrect
# checksums will be reported with a message. The checksum-files will
# be put under:
# <medleydir>/checksumdir (Normally /usr/local/lde/checksumdir).
#
#
# SYNOPSIS:
# ldechecksum [-cg] medleydir [ dir | dirgroup ]
#
# -c compare checksumfiles "FOO.check" with "FOO.sum" (default).
# -g generate checksumfiles "FOO.sum".
# medleydir is the name of the Medley installation directory (normally
# is "/usr/local/lde").
# dir can be any specific directory residing under medleydir. Only
# relative pathnames with respect to medleydir are accepted.
# dirgroup can be either "all" (default), "fonts" or "lisp" which
# means the "install.sunosX", "lisplibrary" and "lispsysouts"
# directories.
#
# CHANGES:
# 08-23-90 Carl Gadener : Added install.sunos4.1
# 05-05-89 Carl Gadener : Added lispusers as an option
# 03-30-89 Carl Gadener : Added fonts and fonts/press
# 01-19-89 Carl Gadener : Parameter "medleydir" is now mandatory. Also
# check that "checksum" files were installed.
# 12-22-88 Carl Gadener : Compressed the big "case $dirspec" statement
# 12-15-88 Carl Gadener : Rewrote it for Bourne shell due to limitation
# factors in CSH
# 12-12-88 Carl Gadener & Larry Harada : Creation of script
# ============================================================================
#
# First case statement checks arguments to ldechecksum
case $# in
0) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
1) case $1 in
-*) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
*) arg="-c"
medleydir=$1
dirspec=all
break ;;
esac ;;
[23])
case $1 in
-[cg]) arg=$1
medleydir=$2
if test $# = 3
then
dirspec=$3
else
dirspec=all
fi
break ;;
-*) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
*) arg="-c"
medleydir=$1
if test $# = 2
then
dirspec=$2
else
echo "Unexpected arg: $3"
exit 1
fi
break ;;
esac ;;
*) echo "Usage: ldechecksum [ -cg ] medleydir [ dir | dirgroup ] "
exit 1 ;;
esac
# Checking if the Medley directory exists
if test -d $medleydir
then
cd $medleydir
# Checking that script is correctly installed
if test -d checksumdir \
-a -f checksumdir/ldechecksum \
-a -f checksumdir/checksum
then
lispdirs="install.sunos3 install.sunos4 install.sunos4.1 lisplibrary lispsysouts"
fonts="JIS1 JIS2 chinese miscellaneous presentation printwheel \
publishing"
if test $arg = "-g"
then
operation="Generating"
else #$arg = "-c"
operation="Verifying"
fi
case $dirspec in
all)
checksumdir/ldechecksum $arg `pwd` lisp
checksumdir/ldechecksum $arg `pwd` fonts/display
checksumdir/ldechecksum $arg `pwd` fonts/interpress
checksumdir/ldechecksum $arg `pwd` fonts/press
;;
lisp)
echo "----------------------------------------------------"
echo "$operation checksums for Lisp directories"
echo "----------------------------------------------------"
for file in $lispdirs
do
checksumdir/checksum $arg $file
done
;;
fonts)
checksumdir/ldechecksum $arg `pwd` fonts/display
checksumdir/ldechecksum $arg `pwd` fonts/interpress
checksumdir/ldechecksum $arg `pwd` fonts/press
;;
fonts/display | \
fonts/interpress)
fonttype=`basename $dirspec`
echo "----------------------------------------------------"
echo "$operation checksums for $fonttype font directories"
echo "----------------------------------------------------"
for file in $fonts
do
checksumdir/checksum $arg $dirspec/$file
done
;;
# All Medley directories at the "lowest" level
install.sunos3 | \
install.sunos4 | \
install.sunos4.1 | \
lisplibrary | \
lispsysouts | \
lispusers | \
fonts/display/JIS1 | \
fonts/display/JIS2 | \
fonts/display/chinese | \
fonts/display/miscellaneous | \
fonts/display/presentation | \
fonts/display/printwheel | \
fonts/display/publishing | \
fonts/interpress/JIS1 | \
fonts/interpress/JIS2 | \
fonts/interpress/chinese | \
fonts/interpress/miscellaneous | \
fonts/interpress/presentation | \
fonts/interpress/printwheel | \
fonts/interpress/publishing | \
fonts/press)
checksumdir/checksum $arg $dirspec
;;
*) echo "$dirspec : No such directory/grouping under `pwd`"
exit 1 ;;
esac
else
echo "`pwd`/checksumdir : No such directory or script incorrectly installed"
exit 1
fi
else
echo "$medleydir : No such directory"
exit 1
fi