| 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__ |