Manual Reference Pages  - webpublish (1)


NAME

webpublish - will copy scripts to the web server directory with any appropriate sanitization.

CONTENTS

Arguments
Author
Calls
Description
Documented Version
Exit Status
Files
Options
Output Used By
Permissions
Rcs Information
Rcs.sh Version
Synopsis
Warning(s)

DOCUMENTED VERSION

1.6 - 2010/07/08 14:55:57

SYNOPSIS

webpublish [-b] [-m [-h] [-o]] [-d] [-i] [-s sdir] [-w wdir] [-x]* [-X]* {scriptfiles}+

DESCRIPTION

A script to copy a shell script to a directory on the webserver
with sensitive information removed from the shell script.

ARGUMENTS

    {scriptfiles} one or more files to copy from the script directory to the web server directory

OPTIONS

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

FILES

    /Library/Webserver/Documents/scripts/.htaccess - Script descriptons when scripts directory is listed.
    /Library/Webserver/Documents/scripts/.htaccess.YYYYmmddHHMMSSb - Backup of .htaccess.

OUTPUT USED BY

    Apache web server

RCS.SH VERSION

00012

RCS INFORMATION

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

PERMISSIONS

rwxr-xr-x userUID staff

WARNING(S)

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.

EXIT STATUS

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 -?.

CALLS

awk
$ejadir/bin/genmanstub (if -m is specified)
$ejadir/bin/manserver (if a manpage file exists for the script)
$ejadir/bin/tidyhtaccess

AUTHOR

Edwin Arneson


\\$4  webpublish (1) EJA UTILITY
Generated by manServer 1.07 from webpublish.1 using man macros. With tweaks by Edwin Arneson.