webpublish - will copy scripts to the web server directory with any appropriate sanitization.
Arguments
Author
Calls
Description
Documented Version
Exit Status
Files
Options
Output Used By
Permissions
Rcs Information
Rcs.sh Version
Synopsis
Warning(s)
1.6 - 2010/07/08 14:55:57
webpublish [-b] [-m [-h] [-o]] [-d] [-i] [-s sdir] [-w wdir] [-x]* [-X]* {scriptfiles}+
A script to copy a shell script to a directory on the webserver
with sensitive information removed from the shell script.
{scriptfiles} one or more files to copy from the script directory to the web server directory
-b set the source directory for script files to ~/bin -d as each file is processed, diff the original and web versions (default=no diff) -i ignore potential RCS.SH VERSION string warnings -m generate a manpage using genmanstub -h pass -h (HTML) to genmanstub (note: if the manpage exists, it will automatically be published as HTML) -o pass -o (overwrite) to genmanstub -s sourcedir specify the source directory for script files (default=.) -w webdir specify the destination directory for script files (default=$webdir) -x does set -x (may be used in functions and external script calls) (see DIAGNOSTICS below) -X sets debugging level--the number of times -X is specified" (see DIAGNOSTICS below)
/Library/Webserver/Documents/scripts/.htaccess - Script descriptons when scripts directory is listed.
/Library/Webserver/Documents/scripts/.htaccess.YYYYmmddHHMMSSb - Backup of .htaccess.
Apache web server
00012
$Id: webpublish,v 1.6 2010/07/08 14:55:57 earneson Exp $
$Author: earneson $
$Date: 2010/07/08 14:55:57 $
$Revision: 1.6 $
$Source: /Users/cvs/scripts/all/Users/earneson/bin/webpublish,v $
$State: Exp $
rwxr-xr-x userUID staff
40 - The localize script could not be found. Global machine settings can not be set.
41 - Can not read script file $sourcedir/${f}.
42 - Skipping copy of $f by user request.
51 - An unknown option was passed to the script, or syntax of the parameters is wrong.
51 - Unknown option >$errflag<
52 - You must specify 1 or more files to publish to the web server.
53 - The web server directory >$webdir< can not be created.
54 - The web server directory >$webdir< can not be written to.
56 - The USAGE was requested using -z or -?.
awk
$ejadir/bin/genmanstub (if -m is specified)
$ejadir/bin/manserver (if a manpage file exists for the script)
$ejadir/bin/tidyhtaccess
Edwin Arneson
\\$4 | webpublish (1) | EJA UTILITY |