Updated documentation, added --tar command-line option
[deployable.git] / deployable
blob924f246d1f94481c143afe3e47db52520cad6349
1 #!/usr/bin/env perl
2 use strict;
3 use warnings;
4 use Carp;
5 use version; our $VERSION = qv('0.0.1');
6 use Fatal qw( close );
7 use Pod::Usage qw( pod2usage );
8 use Getopt::Long qw( :config gnu_getopt );
9 use English qw( -no_match_vars );
10 use File::Basename qw( basename dirname );
11 use File::Spec::Functions qw( file_name_is_absolute catfile );
12 use POSIX qw( strftime );
13 use Cwd qw( cwd realpath );
14 use Archive::Tar;
15 use File::Find::Rule;
16 use Data::Dumper;
18 my %config = (
19 output => '-',
20 remote => catfile(dirname(realpath(__FILE__)), 'remote'),
21 tarfile => [],
22 heredir => [],
23 rootdir => [],
24 root => [],
25 deploy => [],
27 GetOptions(
28 \%config,
29 qw(
30 usage! help! man! version!
32 bundle|all-exec|X!
33 cleanup|c!
34 deploy|exec|d=s@
35 heredir|H=s@
36 include-archive-tar|T!
37 output|o=s
38 root|r=s@
39 rootdir|R=s@
40 tarfile|tar=s
41 workdir|work-directory|deploy-directory|w=s
44 pod2usage(message => "$0 $VERSION", -verbose => 99, -sections => '')
45 if $config{version};
46 pod2usage(-verbose => 99, -sections => 'USAGE') if $config{usage};
47 pod2usage(-verbose => 99, -sections => 'USAGE|EXAMPLES|OPTIONS')
48 if $config{help};
49 pod2usage(-verbose => 2) if $config{man};
51 pod2usage(
52 message => 'working directory must be an absolute path',
53 -verbose => 99,
54 -sections => ''
56 if exists $config{workdir} && !file_name_is_absolute($config{workdir});
58 if ($config{'include-archive-tar'}) {
59 $config{remote} = catfile(dirname(realpath(__FILE__)), 'remote-at');
60 if (! -e $config{remote}) { # "make" it
61 print {*STDERR} "### Making remote-at...\n";
62 my $startdir = cwd();
63 chdir dirname realpath __FILE__;
64 system {'make'} qw( make remote-at );
65 chdir $startdir;
69 # Establish output channel
70 my $out_fh = \*STDOUT;
71 if ($config{output} ne '-') {
72 open my $fh, '>', $config{output} ## no critic
73 or croak "open('$config{output}'): $OS_ERROR";
74 $out_fh = $fh;
76 binmode $out_fh;
78 # Emit script code to be executed remotely. It is guaranteed to end
79 # with __END__, so that all what comes next is data
80 print {$out_fh} get_remote_script();
82 # If a tarfile was given, simply put it and exit
83 if ($config{tarfile}) {
84 open my $fh, '<', $config{tarfile}
85 or croak "open('$config{tarfile}'): $OS_ERROR";
86 print {$out_fh} <$fh>;
87 close $fh;
88 close $out_fh;
89 exit 0;
92 # Where all the data will be kept
93 my $tar = Archive::Tar->new();
95 { # Add a configuration file
96 my %general_configuration;
97 for my $name (qw( workdir cleanup bundle deploy )) {
98 $general_configuration{$name} = $config{$name}
99 if exists $config{$name};
101 $tar->add_data('deployable/config.pl', Dumper \%general_configuration);
104 # Process files and directories. All these will be reported in the
105 # extraction directory, i.e. basename() will be applied to them. For
106 # directories, they will be re-created
107 for my $file (@ARGV) {
108 croak "'$file' not readable" unless -r $file;
109 if (-d $file) {
110 print {*STDERR} "processing directory '$file'\n";
111 save_directory($tar, '.', '.', 'here');
112 } ## end if (-d $file)
113 else {
114 print {*STDERR} "processing file '$file'\n";
115 save_file($tar, $file, 'here');
116 } ## end else [ if (-d $file)
117 } ## end for my $file (@ARGV)
119 # heredir-s are directories that are extracted directly into the ex dir
120 for my $heredir (@{$config{heredir}}) {
121 croak "'$heredir' not readable" unless -r $heredir;
122 print {*STDERR} "processing here-directory '$heredir'\n";
123 save_directory($tar, $heredir, '.', 'here');
124 } ## end for my $heredir (@{$config...
126 # rootdir-s are directories that will go under root
127 for my $rootdir (@{$config{rootdir}}) {
128 croak "'$rootdir' not readable" unless -r $rootdir;
129 print {*STDERR} "processing root-directory '$rootdir'\n";
130 save_directory($tar, '.', $rootdir, 'root');
133 # root-s are directories whose contents go under root
134 for my $root (@{$config{root}}) {
135 croak "'$root' not readable" unless -r $root;
136 print {*STDERR} "processing root-directory '$root'\n";
137 save_directory($tar, $root, '.', 'root');
140 # Save tar file, it will close the filehandle as well
141 $tar->write($out_fh);
143 # Set as executable
144 if ($config{output} ne '-') {
145 chmod oct(755), $config{output}
146 or carp "chmod(0755, '$config{output}'): $OS_ERROR";
150 my $cwd;
151 sub save_directory {
152 my ($tar, $localstart, $localdir, $remotestart) = @_;
154 $cwd ||= cwd();
155 chdir $localstart;
157 save_file($tar, $_, $remotestart) for File::Find::Rule->file()->in($localdir);
159 chdir $cwd;
161 return;
162 } ## end sub save_directory
165 sub save_file {
166 my ($tar, $filename, $remotestart) = @_;
168 my ($ftar) = $tar->add_files($filename);
169 $ftar->rename("$remotestart/$filename");
171 return;
172 } ## end sub save_file
174 sub get_remote_script {
175 open my $fh, '<', $config{remote}
176 or croak "open('$config{remote}'): $OS_ERROR";
177 my @lines;
178 while (<$fh>) {
179 last if /\A __END__ \s*\z/mxs;
180 push @lines, $_;
182 close $fh;
183 return join '', @lines, "__END__\n";
184 } ## end sub get_remote_script
186 __END__
188 =head1 NAME
190 deployable - create a deploy script for some files/scripts
192 =head1 VERSION
194 See version at beginning of script, variable $VERSION, or call
196 shell$ deployable --version
198 =head1 USAGE
200 deployable [--usage] [--help] [--man] [--version]
202 deployable [--bundle|--all-exec|-X] [--cleanup|-c]
203 [--deploy|--exec|d <program>] [--heredir|-H <dirname>]
204 [--include-archive-tar|-T] [--output|-o <filename>]
205 [--root|-r <dirname>] [--rootdir|-R <dirname>]
206 [--tarfile|--tar|-t <filename>]
207 [--workdir|-w <path>] [ files or directories... ]
209 =head1 EXAMPLES
211 shell$ deployable
213 # Use a directory's contents as elements for the target root
214 shell$ ls -1 /path/to/target/root
219 # The above will be deployed as /etc, /opt, /usr and /var
220 shell$ deployable -o dep.pl --root /path/to/target/root
222 # Include directory /path/to/etc for inclusion and extraction
223 # directly as /etc
224 shell$ deployable -o dep.pl --rootdir /path/to/etc
226 =head1 DESCRIPTION
228 This is a meta-script to create deploy scripts. The latter ones are
229 suitable to be distributed in order to deploy something.
231 You basically have to provide two things: files to install and programs
232 to be executed. Files can be put directly into the deployed script, or
233 can be included in gzipped tar archives.
235 When called, this script creates a deploy script for you. This script
236 includes all the specified files, and when executed it will extract
237 those files and execute the given programs. In this way, you can ship
238 both files and logic needed to correctly install those files, but this
239 is of course of of scope.
241 All files and archives will be extracted under a configured path
242 (see L<--workdir> below), which we'll call I<workdir> from now on. Under
243 the I<workdir> a temporary directory will be created, and the files
244 will be put in the temporary directory. You can specify if you want to
245 clean up this temporary directory or keep it, at your choice. (You're able
246 to both set a default for this cleanup when invoking deployable, or when
247 invoking the deploy script itself). The temporary directory will be
248 called I<tmpdir> in the following.
250 There are several ways to embed files to be shipped:
252 =over
254 =item *
256 pass the name of an already-prepared tar file via L</--tarfile>. This is
257 by far the most flexible of the options, but it requires more work on
258 your side. If you pass this option, all other input files/directories will
259 be ignored;
261 =item *
263 specify the file name directly on the command line. A file given in this
264 way will always be extracted into the I<tmpdir>, whatever its initial path
265 was;
267 =item *
269 specify the name of a directory on the command line. In this case,
270 C<tar> will be used to archive the directory, with the usual option to
271 turn absolute paths into relative ones; this means that directories will
272 be re-created under I<tmpdir> when extraction is performed;
274 =item *
276 give the name of a directory to be used as a "here directory", using
277 the C<--heredir|-H> option. This is much the same as giving the directory
278 name (see above), but in this case C<tar> will be told to change into the
279 directory first, and archive '.'. This means that the contents of the
280 "here-directory" will be extracted directly into I<tmpdir>.
282 =back
284 =head2 Extended Example
286 Suppose you have a few server which have the same configuration, apart
287 from some specific stuff (e.g. the hostname, the IP addresses, etc.).
288 You'd like to perform changes to all with the minimum work possible...
289 so you know you should script something.
291 For example, suppose you want to update a few files in /etc, setting these
292 files equal for all hosts. You would typically do the following:
294 # In your computer
295 shell$ mkdir -p /tmp/newfiles/etc
296 shell$ cd /tmp/newfiles/etc
297 # Craft the new files
298 shell$ cd ..
299 shell$ tar cvzf newetc.tar.gz etc
301 # Now, for each server:
302 shell$ scp newetc.tar.gz $server:/tmp
303 shell$ ssh $server tar xvzf /tmp/newetc.tar.gz -C /
306 So far, so good. But what if you need to kick in a little more logic?
307 For example, if you update some configuration files, you'll most likey
308 want to restart some services. So you could do the following:
310 shell$ mkdir -p /tmp/newfiles/tmp
311 shell$ cd /tmp/newfiles/tmp
312 # craft a shell script to be executed remotely and set the exec bit
313 # Suppose it's called deploy.sh
314 shell$ cd ..
315 shell$ tar cvzf newetc.tar.gz etc tmp
317 # Now, for each server:
318 shell$ scp newetc.tar.gz $server:/tmp
319 shell$ ssh $server tar xvzf /tmp/newetc.tar.gz -C /
320 shell$ ssh $server /tmp/deploy.sh
322 And what if you want to install files depending on the particular machine?
323 Or you have a bundle of stuff to deploy and a bunch of scripts to execute?
324 You can use deployable. In this case, you can do the following:
326 shell$ mkdir -p /tmp/newfiles/etc
327 shell$ cd /tmp/newfiles/etc
328 # Craft the new files
329 shell$ cd ..
330 # craft a shell script to be executed remotely and set the exec bit
331 # Suppose it's called deploy.sh
332 shell$ deployable -o deploy.pl etc deploy.sh --exec deploy.sh
334 # Now, for each server
335 shell$ scp deploy.pl $server:/tmp
336 shell$ ssh $server /tmp/deploy.pl
338 And you're done. This can be particularly useful if you have another
339 layer of deployment, e.g. if you have to run a script to decide which
340 of a group of archives should be deployed. For example, you could craft
341 a different new "etc" for each server (which is particularly true if
342 network configurations are in the package), and produce a simple script
343 to choose which file to use based on the MAC address of the machine. In
344 this case you could have:
346 =over
348 =item newetc.*.tar.gz
350 a bunch of tar files with the configurations for each different server
352 =item newetc.list
354 a list file with the association between the MAC addresses and the
355 real tar file to deploy from the bunch in the previous bullet
357 =item deploy-the-right-stuff.sh
359 a script to get the real MAC address of the machine, select the right
360 tar file and do the deployment.
362 =back
364 So, you can do the following:
366 shell$ deployable -o deploy.pl newetc.*.tar.gz newetc.list \
367 deploy-the-right-stuff.sh --exec deploy-the-right-stuff.sh
369 # Now, for each server:
370 shell$ scp deploy.pl $server:/tmp
371 shell$ ssh $server /tmp/deploy.pl
373 So, once you have the deploy script on the target machine all you need
374 to do is to execute it. This can come handy when you cannot access the
375 machines from the network, but you have to go there physically: you
376 can prepare all in advance, and just call the deploy script.
379 =head1 OPTIONS
381 Meta-options:
383 =over
385 =item B<--help>
387 print a somewhat more verbose help, showing usage, this description of
388 the options and some examples from the synopsis.
390 =item B<--man>
392 print out the full documentation for the script.
394 =item B<--usage>
396 print a concise usage line and exit.
398 =item B<--version>
400 print the version of the script.
402 =back
404 Real-world options:
406 =over
408 =item B<< --bundle | --all-exec | -X >>
410 Set bundle flag in the produced script. If the bundle flag is set, the
411 I<deploy script> will treat all executables in the main deployment
412 directory as scripts to be executed.
414 By default the flag is not set.
416 =item B<< --cleanup | -c >>
418 Set cleanup flag in the produced script. If the cleanup flag is set, the
419 I<deploy script> will clean up after having performed all operations.
421 You can set this flag to C<0> by using C<--no-cleanup>.
423 =item B<< --deploy | --exec | -d <filename> >>
425 Set the name of a program to execute after extraction. You can provide
426 multiple program names, they will be executed in the same order.
428 =item B<< --heredir | -H <path> >>
430 Set the name of a "here directory" (see L<DESCRIPTION>). You can use this
431 option multiple times to provide multiple directories.
433 =item B<< --include-archive-tar | -T >>
435 Embed L<Archive::Tar> (with its dependencies L<Archive::Tar::Constant> and
436 L<Archive::Tar::File>) inside the final script. Use this when you know (or
437 aren't sure) that L<Archive::Tar> will not be available in the target
438 machine.
440 =item B<< --output | -o <filename> >>
442 Set the output file name. By default the I<deploy script> will be given
443 out on the standard output; if you provide a filename (different from
444 C<->, of course!) the script will be saved there and the permissions will
445 be set to 0755.
447 =item B<< --root | -r <dirname> >>
449 Include C<dirname> contents for deployment under root directory. The
450 actual production procedure is: hop into C<dirname> and grab a tarball
451 of C<.>. During deployment, hop into C</> and extract the tarball.
453 This is useful if you're already building up the absolute deployment
454 layout under a given directory: just treat that directory as if it were
455 the root of the target system.
457 =item B<< --rootdir | -R <dirname >>
459 Include C<dirname> as a directory that will be extracted under root
460 directory. The actual production procedure is: grab a tarball of
461 C<dirname>. During deployment, hop into C</> and extract the tarball.
463 This is useful if you have a directory (or a group of directories) that
464 you want to deploy directly under the root.
466 =item B<< --tarfile | --tar | -t <filename> >>
468 Use the given file as the only contents for the deployed script. The
469 filename should point to a valid tar file, which will be the only
470 one stored into the resulting script (i.e. all other files/directories
471 will be ignored). This requires more work on your side, but gives you
472 full flexibility.
474 Note that the generated script will interpret the generated tar file
475 as follows:
477 =over
479 =item B<< deployable/config.pl >> (file)
481 will be C<eval>ed, expecting to receive a reference to an anonymous
482 hash with the configurations;
484 =item B<< here >> (directory)
486 will be normally deployed into the working directory in the target
487 system;
489 =item B<< root >> (directory)
491 will be normally deployed under C</> in the target system.
493 =back
495 =item B<< --workdir | --deploy-directory | -w <path> >>
497 Set the working directory for the deploy.
499 =back
501 =head1 THE DEPLOY SCRIPT
503 The net result of calling this script is to produce another script,
504 that we call the I<deploy script>. This script is made of two parts: the
505 code, which is fixed, and the configurations/files, which is what is
506 actually produced. The latter part is put after the C<__END__> marker,
507 as usual.
509 Stuff in the configuration part is always hexified in order to prevent
510 strange tricks or errors. Comments will help you devise what's inside the
511 configurations themselves.
513 The I<deploy script> has options itself, even if they are quite minimal.
514 In particular, it supports the same options C<--workdir|-w> and
515 C<--cleanup> described above, allowing the final user to override the
516 configured values. By default, the I<workdir> is set to C</tmp/our-deploy>
517 and the script will clean up after itself.
519 The following options are supported in the I<deploy script>:
521 =over
523 =item B<--usage | --man | --help>
525 print a minimal help and exit
527 =item B<--version>
529 print script version and exit
531 =item B<--bundle | --all-exec | -X>
533 treat all executables in the main deployment directory as scripts
534 to be executed
536 =item B<--cleanup | --no-cleanup>
538 perform / don't perform temporary directory cleanup after work done
540 =item B<< --deploy | --no-deploy >>
542 deploy scripts are executed by default (same as specifying '--deploy')
543 but you can prevent it.
545 =item B<--dryrun | --dry-run>
547 print final options and exit
549 =item B<< --filelist | --list | -l >>
551 print a list of files that are shipped in the deploy script
553 =item B<< --inspect <dirname> >>
555 just extract all the stuff into <dirname> for inspection. Implies
556 C<--no-deploy>, C<--no-tempdir>, ignores C<--bundle> (as a consequence of
557 C<--no-deploy>), disables C<--cleanup> and sets the working directory
558 to C<dirname>
560 =item B<--show | --show-options | -s>
562 print configured options and exit
564 =item B<< --tar | -t >>
566 print out the tar file that contains all the shipped files, useful
567 to redirect to file or pipe to the B<tar> program
569 =item B<< --tempdir | --no-tempdir >>
571 by default a temporary directory is created (same as specifying
572 C<--tempdir>), but you can execute directly in the workdir (see below)
573 without creating it.
575 =item B<--workdir | --work-directory | --deploy-directory | -w>
577 working base directory (a temporary subdirectory will be created
578 there anyway)
580 =back
582 Note the difference between C<--show> and C<--dryrun>: the former will
583 give you the options that are "embedded" in the I<deploy script> without
584 taking into account other options given on the command line, while the
585 latter will give you the final options that would be used if the script
586 were called without C<--dryrun>.
588 =head2 Deploy Script Example Usage
590 In the following, we'll assume that the I<deploy script> is called
591 C<deploy.pl>.
593 To execute the script with the already configured options, you just have
594 to call it:
596 shell$ ./deploy.pl
598 If you just want to see which configurations are in the I<deploy script>:
600 shell$ ./deploy.pl --show
602 To see which files are included, you have two options. One is asking the
603 script:
605 shell$ ./deploy.pl --filelist
607 the other is piping to tar:
609 shell$ ./deploy.pl --tar | tar tvf -
611 Extract contents of the script in a temp directory and simply inspect
612 what's inside:
614 # extract stuff into subdirectory 'inspect' for... inspection
615 shell$ ./deploy.pl --no-tempdir --no-deploy --workdir inspect
617 =head2 Deploy Script Requirements
619 You'll need a working Perl with version at least 5.6.2.
621 If you specify L</--include-archive-tar>, the module L<Archive::Tar> will
622 be included as well. This should ease your life and avoid you to have
623 B<tar> on the target machine. On the other hand, if you already know
624 that B<tar> will be available, you can avoid including C<Archive::Tar>
625 and have the generated script use it (it could be rather slower anyway).
627 =head1 DIAGNOSTICS
629 Each error message should be enough explicit to be understood without the
630 need for furter explainations. Which is another way to say that I'm way
631 too lazy to list all possible ways that this script has to fail.
634 =head1 CONFIGURATION AND ENVIRONMENT
636 deployable requires no configuration files or environment variables.
638 Please note that deployable B<needs> to find its master B<remote> file
639 to produce the final script. This must be put in the same directory where
640 deployable is put. You should be able to B<symlink> deployable where you
641 think it's better, anyway - it will go search for the original file
642 and look for B<remote> inside the same directory. This does not apply to
643 hard links, of course.
646 =head1 DEPENDENCIES
648 All core modules, apart the following:
650 =over
652 =item B<< Archive::Tar >>
654 =item B<< File::Find::Rule >>
656 =back
658 =head1 BUGS AND LIMITATIONS
660 No bugs have been reported.
662 Please report any bugs or feature requests to the AUTHOR below.
664 Be sure to read L<CONFIGURATION AND ENVIRONMENT> for a slight limitation
665 about the availability of the B<remote> script.
667 =head1 AUTHOR
669 Flavio Poletti C<flavio [AT] polettix.it>
672 =head1 LICENSE AND COPYRIGHT
674 Copyright (c) 2008, Flavio Poletti C<flavio [AT] polettix.it>. All rights reserved.
676 This script is free software; you can redistribute it and/or
677 modify it under the same terms as Perl itself. See L<perlartistic>
678 and L<perlgpl>.
680 Questo script è software libero: potete ridistribuirlo e/o
681 modificarlo negli stessi termini di Perl stesso. Vedete anche
682 L<perlartistic> e L<perlgpl>.
685 =head1 DISCLAIMER OF WARRANTY
687 BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
688 FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
689 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
690 PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
691 EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
692 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
693 ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
694 YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
695 NECESSARY SERVICING, REPAIR, OR CORRECTION.
697 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
698 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
699 REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
700 LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
701 OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
702 THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
703 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
704 FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
705 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
706 SUCH DAMAGES.
708 =head1 NEGAZIONE DELLA GARANZIA
710 Poiché questo software viene dato con una licenza gratuita, non
711 c'è alcuna garanzia associata ad esso, ai fini e per quanto permesso
712 dalle leggi applicabili. A meno di quanto possa essere specificato
713 altrove, il proprietario e detentore del copyright fornisce questo
714 software "così com'è" senza garanzia di alcun tipo, sia essa espressa
715 o implicita, includendo fra l'altro (senza però limitarsi a questo)
716 eventuali garanzie implicite di commerciabilità e adeguatezza per
717 uno scopo particolare. L'intero rischio riguardo alla qualità ed
718 alle prestazioni di questo software rimane a voi. Se il software
719 dovesse dimostrarsi difettoso, vi assumete tutte le responsabilità
720 ed i costi per tutti i necessari servizi, riparazioni o correzioni.
722 In nessun caso, a meno che ciò non sia richiesto dalle leggi vigenti
723 o sia regolato da un accordo scritto, alcuno dei detentori del diritto
724 di copyright, o qualunque altra parte che possa modificare, o redistribuire
725 questo software così come consentito dalla licenza di cui sopra, potrà
726 essere considerato responsabile nei vostri confronti per danni, ivi
727 inclusi danni generali, speciali, incidentali o conseguenziali, derivanti
728 dall'utilizzo o dall'incapacità di utilizzo di questo software. Ciò
729 include, a puro titolo di esempio e senza limitarsi ad essi, la perdita
730 di dati, l'alterazione involontaria o indesiderata di dati, le perdite
731 sostenute da voi o da terze parti o un fallimento del software ad
732 operare con un qualsivoglia altro software. Tale negazione di garanzia
733 rimane in essere anche se i dententori del copyright, o qualsiasi altra
734 parte, è stata avvisata della possibilità di tali danneggiamenti.
736 Se decidete di utilizzare questo software, lo fate a vostro rischio
737 e pericolo. Se pensate che i termini di questa negazione di garanzia
738 non si confacciano alle vostre esigenze, o al vostro modo di
739 considerare un software, o ancora al modo in cui avete sempre trattato
740 software di terze parti, non usatelo. Se lo usate, accettate espressamente
741 questa negazione di garanzia e la piena responsabilità per qualsiasi
742 tipo di danno, di qualsiasi natura, possa derivarne.
744 =cut