home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 3
/
Meeting_Pearls_III.iso
/
Pearls
/
imdb
/
tools
/
Readme
< prev
next >
Wrap
Text File
|
1995-09-30
|
12KB
|
301 lines
ApplyDiffs 1.2 (01.10.95)
=========================
(c) 1995 by André Bernhardt
If you have tested this little program, please send an E-Mail with
comments, suggestions, bugreports or simply "It works" to:
Andre Bernhardt <ujad@rz.uni-karlsruhe.de>
If you do not know what the Internet MovieDatabase is, get the
MovieDatabase FAQ which may be obtained by anonymous ftp to rtfm.mit.edu
under /pub/usenet/news.answers/movies/movie-database-faq, or by sending
e-mail to <movie@ibmpcug.co.uk> with the subject "HELP FAQ"
TEMPLATE
========
ApplyDiffs LISTDIR/A,DIFFDIR/A,KEEP/S,NOCHECK/S,QUIET/S,NOSTATS/S
- LISTDIR directory where the moviedatabase listfiles are located
- DIFFDIR directory where the diffiles are located
- KEEP option. If present, a copy of the old listfiles as well as the
successfully applied diff-files will be kept.
- NOCHECK disables checking the diff- and listfiles before applying.
- QUIET option. If present, don't print any progress-information,
only stats
- NOSTATS option. If present, don't print the stats.
PURPOSE
=======
The Internet MovieDatabase files are updated every Friday. The latest full
versions of all the files are held in the 'database' directory of the
MovieDatabase FTP-servers. The 'diffs' directory contains sets of diff
files for each week's database files with respect to the previous week's.
Each file in this directory is a tar archive which unpacks to a directory
called 'diffs'. The tar archives are named according to the week's full
data to which they should be applied in order to generate the following
week's data. The filename format is:
diffs-YYMMDD.tar.gz
For example, diffs-941230.tar.Z contains the diffs to be applied to the
30th December 1994 files in order to generate the files for 6th January
1995.
NOTE: A copy of the Internet MovieDatabase Diff-Files is uploaded on
AMINET every week as lha-archive. You should be able to get the latest
diffs from your AMINET-mirror-site.
The program 'ApplyDiffs' applies all files of the weekly diff-archive to
the listfiles of the Internet MovieDatabase and checks the consistency of
the data.
NOTE: if you miss more than one weeks worth of updates you need to apply
the patches for all the missing weeks in succession to bring your local
copies up to date.
In order to check that the diffs have been applied correctly, all the
database files include a CRC on their first line. The program 'ApplyDiffs'
will automatically verify that this checksum is correct.
After having applied all diffs to the listfiles, a summary of all
diff-files together with the status information and number of lines that
have been added and deleted is shown.
REQUIREMENTS
============
In order to update your local installation of the Internet MovieDatabase
you need the following things:
- A complete and recent distribution of the database files. You can only
apply a set of diffs to a certain set of listfiles! Simply get all
listfiles from the FTP-server and start applying diffs from the following
week on.
- A copy of the 'gzip'-program for the Amiga. It should be available on
AMINET.
- A copy of the 'tar'- or 'gnutar'-program for the Amiga. You can also
find this program on AMINET.
- The program 'ApplyDiffs' from this package
- And finally, you need of course 'MovieMUI', the database-program.
USAGE
=====
- Uncompress the tar-archive
gzip -d diffs-YYMMDD.tar.gz
where YYMMDD is the date of last week's full data to which the diffs
shall be applied in order to generate this week's data.
- Un-tar the archive using the tar-program:
tar -xvf diffs-YYMMDD.tar
or
gnutar -xvf diffs-YYMMDD.tar
- Start 'ApplyDiffs' by giving the directory-path where you keep your
listfiles and the directory-path where the diffs are. 'ApplyDiffs' will
scan the diffs-directory for diff-files and try to apply them.
If you use the option "KEEP", a copy of the old listfile and the
apropriate diff-file will be kept in case anything goes wrong. If a
diff-file cannot be applied, an error message (e.g. "CRC-Checksum
Error") will be issued and the file will be skipped.
E.g. Assuming that you keep your listfiles in the directory
"dh0:MovieDatabase/lists/" and you have un'tar'ed the diffs to "t:"
you need to run 'ApplyDiffs':
ApplyDiffs dh0:MovieDatabase/lists/ t:diffs/
or
ApplyDiffs dh0:MovieDatabase/lists/ t:diffs/ KEEP
- Run 'MovieMUI' and 'update database' to get the most recent version
installed.
CHECKING
========
Unless the option NOCHECK is specified, ApplyDiffs will check the list- and
diff-files before applying. If one or more errors were encountered, no
diffs - even those that would work without problems - will be processed.
Checking however takes some time. If you don't need it, you can disable
checking by using the NOCHECK switch.
STATS-INFORMATION
=================
After having applied all diffs to the listfiles, a summary of all
diff-files together with the status information and number of lines that
have been added and deleted is shown.
The text in the status column means:
- OK The diffs have been applied allright.
- New File This is in fact no error, but to inform you that a new
listfile has become available.
- CRC-Error The CRC-Sum is not correct.
Should not occur unless anyone has tampered with the file.
- IO-Error ApplyDiffs failed to open, read or write a file.
- Wrong Diffs You are trying to apply the diffs to a wrong listfile
Please check that you do only apply the correct pairs of
diffs-listfiles.
- Syntax Error The diff-file contains commands that are unknown to
Applydiff. Maybe this is not a diff-file at all!?
IMPORTANT:
If the status is other than OK, the original listfile will be left
unchanged. The other files however may have been changed. You might run
into trouble when applying the following week's diffs if you don't find
the cause of the trouble.
If you can't get ApplyDiffs to apply the diffs to a certain file, the best
thing to do is to get this listfile from one of the MovieDatabase
FTP-sites.
RETURN-VALUES
=============
ApplyDiffs will return:
0 if everything was O.K.
10 as a warning that some minor problems occurred.
E.g. A listfile was missing somewhere, or an CRC-sum was wrong
20 if a serious error has occurred
You can use these values for a shell-script that automagically fetches the
latest diff-file, applies the data and updates the MovieDatabase.
WHY APPLYDIFFS?
===============
Instead of Applydiffs, you could as well use the common program 'patch'.
Unfortunately, this program creates very big temporary files when updating
the actors- & actresses lists. It is also very slow and can't check the
CRC-sums. ApplyDiffs on the other hand can only be used to apply the
MovieDatabase-diffs to the listfiles. It cannot be used to apply any diffs
created by the program 'diff'!
DISCLAIMER
==========
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDER AND/OR OTHER PARTIES PROVIDE THE PROGRAM ''AS IS'' WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY REDISTRIBUTE THE
PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
LICENSE
=======
This file is part of the Internet Movie Database. The database is an
international volunteer effort whose principal objective is to provide
useful and up to date movie information *freely* available on-line, across
as many systems and platforms as possible. The Internet Movie Database
Team can be reached via e-mail at <imdb-team@ibmpcug.co.uk> and are happy
to discuss the implications of and exceptions to this license.
All data and software released by the Internet Movie Database Team is
freely available to anyone within certain limitations described below. You
are encouraged to quote subsets of the database in USENET articles, movie
related FAQs, magazine articles etc. We do ask, however, that if
appropriate, you make reference to the source of the data and provide a
pointer to database for the benefit of the reader.
Permission is granted by the copyright holder to allow free distribution of
this file and any other part of the Internet Movie Database in an
ELECTRONIC FORM ONLY, providing the following conditions are met:
(1) NO FEE OF ANY KIND (however indirect), can be charged for its
distribution. If this file is being stored for later distribution to
anyone that can be seen as a customer to yourself or your company /
organization YOU MUST contact the Internet Movie Database Team for
permission.
(2) Each of the database files may be distributed individually but only in
an unaltered form. All the header and trailer information (including
this notice and the details on how to access the database) must remain
intact.
(3) Specifically the files may NOT be used to construct any kind of
on-line database (except for individual personal use). Clearance for
ALL such on-line data resources must be requested from the Internet
Movie Database Team. This is to enable us to maintain an up to date
list of all such sites. Clearance will be granted provided access to
said database is itself entirely free from ANY fees.
(4) In addition, copies of the movie database frequently asked questions
list and additions guide must be made available in the same area / by
the same method as the other database files.
(5) CD-ROM distribution is prohibited without written permission from the
Internet Movie Database Team (see below for an e-mail contact).
Distribution by e-mail, BBS and internet systems is positively encouraged
within these limitations.
The files and software which make up the movie database may be uploaded to
commercial BBS systems providing that the above conditions are met and no
*additional* fees are applied above the standard connect time or
downloading charges.
This copyright notice has been designed to ensure that the voluntary time
and effort of the Internet Movie Database Team and database users, is not
used for financial gain by those who have contributed nothing or little to
its growth or success. The changing nature of the Internet towards more
commercial uses has forced us to produce this statement. Please do not be
discouraged from submitting additions to the database as a result of this
policy. If you need further explanation please contact the team at the
address given below.
If you are in doubt as to whether this copyright notice prevents you from
distributing the database to others, you should contact the Internet Movie
Database Team by e-mail at <imdb-team@ibmpcug.co.uk>.