NAME

webupload.pl - website uploader


SYNOPSIS

webupload [options]


DESCRIPTION

This is a perl script for uploading files to an FTP site. This script was designed specifically for uploading website files, in the cases where:

webupload allows the user to specify a file containing a list of files/directories to be uploaded. The user may also specify commands to create directories or delete files.

A distinction is made between binary and text files via their extensions for the purpose of uploading. A config file can be used to specify inital setup/connection paramters.

Special support is integrated for those that wish to use ActiveState's port of Perl with cygwin. If the script detects that $^O is MSWin32 and the $CGYWIN environment variable is set, it will use cygpath to translate POSIX cygwin paths into Win32 paths.


OPTIONS


FILELIST FORMAT

Each file or directory should be listed on a new line without any characters preceding it.

If a line is prefixed by a hash (#) then it will be treated as a commend unless there really exists a file or directory with a name equal to that line.

If a line is prefixed by a percent sign (%) then it will be treated as a command. The currently supported commands are:


CONFIG FILE FORMAT

     host    ftp.xxx.com
     user    me
     pwd     xxx
     ldir    c:\websites
     rdir    /public_html/

If any of the fields are ommitted from the config file, the user will be prompted for them on the console.


PREREQUISITES

ConfigReader::DirectiveStyle

File::Find

Getopt::Long

Net::FTP

Pod::Usage

Term::ReadLine


COREQUISITES

none


TODO

Allow list of binary_extensions to be specified in the config file.

Any other good suggestions that people send me!


AUTHOR

 Sagar R. Shah
 sagarshah@softhome.net
 http://www.shahdot.com/


COPYRIGHT AND LICENSE

Copyright (c) 2002, Sagar R. Shah. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl.