$!***************************************************************************
$!* *
$!* DCL_DIET.COM *
$!* *
$!* © Copyright 1976, 2004 Hewlett-Packard Development Company, L.P. *
$!* *
$!* Confidential computer software. Valid license from HP and/or *
$!* its subsidiaries required for possession, use, or copying. *
$!* *
$!* Consistent with FAR 12.211 and 12.212, Commercial Computer Software, *
$!* Computer Software Documentation, and Technical Data for Commercial *
$!* Items are licensed to the U.S. Government under vendor's standard *
$!* commercial license. *
$!* *
$!* Neither HP nor any of its subsidiaries shall be liable for technical *
$!* or editorial errors or omissions contained herein. The information *
$!* in this document is provided "as is" without warranty of any kind and *
$!* is subject to change without notice. The warranties for HP products *
$!* are set forth in the express limited warranty statements accompanying *
$!* such products. Nothing herein should be construed as constituting an *
$!* additional warranty. *
$!* *
$!***************************************************************************
$!
$! Abstract: "DIET" a DCL .COM procedure by removing all comments
$! and reducing all spaces to a single space
$!
$! Author: Charlie Hammond
$!
$! Created: 15-Sep-1998
$!
$! Inputs: P1 -- The file to be "dieted"
$!
$! Outputs: P2 -- The "dieted" file
$!
$! MODIFICATION HISTORY
$!
$! V1.2 2006 MAY-01 Charlie Hammond
$! Handle $DECKs with /DOLLARS
$!
$! V1.1 2004-AUG-19 Charlie Hammond
$! Do not diet any line containing "''F$" or "''f$".
$! This avoids errors made by F$EDIT.
$!
$! October 2002
$! If the translation of the logical name DCL$DIET_DOTDOT is true, then
$! add a space a the beginning of a line that starts with ".".
$! This is to overcome a problem with SMTP mail in Compaq TCP/IP services
$! so that TCP/IP V5.3-18's SMTP won't double the "."
$!
$! 15-Dec-1999 -- cleaned up a few code details
$!
$!
$! ---------------------------------------------------------------------------
$ goto start
$! This $DECK remains after DCLDIET is run to give a hint...
$DECK
**************************************************************
This procedure "DIETs" a command procedure file -- compressing
it by removing comments and unnecessary space. This saves file
space and improves execution time. It may also remove comments
that you don't want users to see.
To run this procedure, enter command
$@DCL_DIET