Retour vers le sommaire programmation

Iso9660 for Linux or Unix




Written by Jacques Guellec, jguellec@free.fr. This program is an "emailware". If you use it, please, send me a mail.

English version

You can get http://perso.easynet.fr/~jguellec/program/perl/iso9660/iso9660_1.05.tar.gz.asc to check the integrity of the .tar.gz file. My PGP public key is in the html source of this document and on the PGP public key servers. Example: http://www.uk.pgp.net/pgpnet/wwwkeys.html

You may distibute Iso9660 under the terms of Artistic licence.


Download

iso9660_1.05.tar.gz

Historic

I had to change an html arborescence* with the object of put it in iso9660 standard level 1 (8 + 3, no hyphen, no capital etc, etc ...)

I began by changing the files names manually, and after that, i got a lot of html source code to modified.

So, i tried to help myself with Perl...


Installation

Untar the archive iso9660_v1.05.tar.gz for example in /usr/local/etc, a directory iso9660_1.05 is created. Inside you can find:

- iso9660.conf - configuration file
- iso9660 - sh script
- src_arbo - sh script
- source_iso9660.pl - Perl script
- lisez_moi.htm - French HTML documentation
- readme.htm - English HTML documentation
- nom_fichier.pl - Perl script
- src_same_dir - sh script
- iso9660_license_fr.txt - The license in french
- iso9660_license_en.txt - The license in english

Add this new directory /usr/local/iso9660_1.05 in the PATH.

Possibly you will have to change the PATH to sh or perl. To know where is a program, just type whereis perl or which perl

You have now to complete the configuration file, see the "set Iso9660" section.


What does Iso9660 do

(No exhaustive list)
before the scriptafter the script
<a href=eXEmple.html><a href=exemple.htm>
<a href=exe-m-Ple.html><a href=exe_m_ple.htm>
<a href=-exeMPle-.html><a href=_exemple_.htm>
<a href=exEMple-.html><a href=exemple_.htm>
<a href=exE.M.ple.html><a href=exe_m_ple.htm>
<a href=../../exEMple..html><a href=../../exemple_.htm>
<a href=.exEMple.html><a href=_exemple.htm>
<a href=exem-ple.TXT><a href=exem_ple.txt>
<a href=-exemple.TXT><a href=_exemple.txt>
<a href=exemple-.TXT><a href=exemple_.txt>
<img src=eXEmple-.GIF><img src=exemple_.gif>
<img src=eXEmple-.JPG><img src=exemple_.jpg>
If the "cut the long file name" is set
<img src=ImaGe-eXEmple.JPG><img src=image__1.jpg>

These scripts don't claim that they can transform by their ownn an entirely tree structure in iso9660 standard, but it can avoid you a lot of manual work.

It manage file name more than 8 characters, hyphen, dot in the files names and in the html source code

"source.pl" don't change the absolute adresses (with http). It's easy to modify it.

This script search for filenames between "href" and ".htm" or "href" and "html" or "href" and "txt" or "src" and "gif" or "src" and "jpg".


Paramètrage

With the variable CUT_LONG_FILE_NAME, you can cut the file name longer than 8 + 3 with a number and a substitution character

example: long_file_name.html ---> long_f_1.htm

If the same file exist several times in the tree structure, it will have always the same name.

Of course the source of each HTML file will be updated.


Use

iso9660    -d    name/of/the/directory works only on the start directory.

iso9660   -t    name/of/the/directory works on a complete tree structure.

iso9660   -h    name/of/the/directory or iso9660   -h    or iso9660 display this help.

Lors du déroulement du programme lorsque celui-ci traite les noms de fichiers il y a des "erreurs" de mv. Il y a en effet beaucoup de cas ou le programme fait un mv sur des fichiers identique, tout cela est donc parfaitement normal.

When the program is running and is processing the filenames, there is a lot of "errors" of mv. There is a lot of cases where the program do a mv on the same files, it is normal for this program.

If you have applets with .class files in your tree structure, do not run this programm beacause your applets will not work with .cla


© Lilas - 98