| 1 | |||
| 2 | use ePod ; | ||
| 3 | |||
| 4 | use strict ; | ||
| 5 | |||
| 6 | if ( $ARGV[0] =~ /^-+h/i || !@ARGV ) { | ||
| 7 | |||
| 8 | my ($script) = ( $0 =~ /([^\\\/]+)$/s ); | ||
| 9 | |||
| 10 | print qq`____________________________________________________________________ | ||
| 11 | |||
| 12 | ePod - $ePod::VERSION | ||
| 13 | ____________________________________________________________________ | ||
| 14 | |||
| 15 | USAGE: | ||
| 16 | |||
| 17 | $script file.epod file.pod | ||
| 18 | |||
| 19 | |||
| 20 | (C) Copyright 2000-2004, Graciliano M. P. <gm\@virtuasites.com.br> | ||
| 21 | ____________________________________________________________________ | ||
| 22 | `; | ||
| 23 | |||
| 24 | exit; | ||
| 25 | } | ||
| 26 | |||
| 27 | my $epod = ePod->new() ; | ||
| 28 | |||
| 29 | my $epod_file = shift ; | ||
| 30 | my $pod_file = $ARGV[0] =~ /pod/i ? shift : undef ; | ||
| 31 | |||
| 32 | my $new_file = $epod->to_pod( $epod_file , $pod_file , @ARGV ) ; | ||
| 33 | |||
| 34 | print "File $epod_file converted to $new_file.\n" ; | ||
| 35 | |||
| 36 |