| 1 | #!/usr/local/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | # PODNAME: html_formfu_deploy.pl | ||
| 6 | # ABSTRACT: deploy local copy of HTML::FormFu template files | ||
| 7 | |||
| 8 | use HTML::FormFu::Deploy; | ||
| 9 | |||
| 10 | warn <<'END'; | ||
| 11 | You only need to create a local copy of the HTML::FormFu template files | ||
| 12 | if you intend on customising them. | ||
| 13 | Otherwise, HTML::FormFu should automatically locate the system-wide copy of | ||
| 14 | the files, installed in the perl @INC paths. | ||
| 15 | |||
| 16 | END | ||
| 17 | |||
| 18 | if ( @ARGV != 1 ) { | ||
| 19 | die "ERROR: Target directory argument required\n"; | ||
| 20 | } | ||
| 21 | |||
| 22 | HTML::FormFu::Deploy::deploy( $ARGV[0] ); | ||
| 23 | |||
| 24 | __END__ | ||
| 25 | |||
| 26 | =pod | ||
| 27 | |||
| 28 | =encoding UTF-8 | ||
| 29 | |||
| 30 | =head1 NAME | ||
| 31 | |||
| 32 | html_formfu_deploy.pl - deploy local copy of HTML::FormFu template files | ||
| 33 | |||
| 34 | =head1 VERSION | ||
| 35 | |||
| 36 | version 2.06 | ||
| 37 | |||
| 38 | =head1 SYNOPSIS | ||
| 39 | |||
| 40 | html_formfu_deploy.pl F<target-directory> | ||
| 41 | |||
| 42 | =head1 DESCRIPTION | ||
| 43 | |||
| 44 | The "html_formfu_deploy.pl" script creates a local copy of the HTML::FormFu | ||
| 45 | template files for customization in the directory F<target-directory>. | ||
| 46 | |||
| 47 | If no customization is needed, HTML::FormFu should use the system-wide | ||
| 48 | installation of the template files. | ||
| 49 | |||
| 50 | =head1 SEE ALSO | ||
| 51 | |||
| 52 | HTML::FormFu::Deploy | ||
| 53 | |||
| 54 | =head1 AUTHOR | ||
| 55 | |||
| 56 | Carl Franks <cpan@fireartist.com> | ||
| 57 | |||
| 58 | =head1 COPYRIGHT AND LICENSE | ||
| 59 | |||
| 60 | This software is copyright (c) 2018 by Carl Franks. | ||
| 61 | |||
| 62 | This is free software; you can redistribute it and/or modify it under | ||
| 63 | the same terms as the Perl 5 programming language system itself. | ||
| 64 | |||
| 65 | =cut |