Title: | USG buildhelp questions/answers |
Moderator: | SMURF::FILTER |
Created: | Mon Apr 26 1993 |
Last Modified: | Mon Jan 20 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2763 |
Total number of notes: | 5802 |
Date Of Receipt: 5-JUN-1995 13:16:47.40 From: SMURF::ALPHA::frank "Douglas Frank USG 05-Jun-1995 1315" To: buildhelp@DEC:.zko.alpha CC: Subj: preserving comments in scripts Does anyone know how to keep comments from being stripped from installed scripts? thanks --Doug
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1510.1 | Re: preserving comments in scripts | AOSG::FILTER | Automatic Posting Software - mail to flume::puck | Mon Jun 05 1995 15:19 | 24 |
Date Of Receipt: 5-JUN-1995 13:27:05.12 From: SMURF::WASTED::"[email protected]" "05-Jun-1995 1325" To: [email protected] CC: [email protected] Subj: Re: preserving comments in scripts Don't put them between the $Log and $EndLog$ delimiters in the file. This area is the one that gets stripped and is intended for RCS file history only. Given that information in there might contain comments like "fixed bug that ..." it's considered propriatary and should not go to customers and thus gets auto-stripped in every creation of the output tree. -Grant | Does anyone know how to keep comments from being stripped from installed | scripts? | | thanks | | --Doug | |||||
1510.2 | Re: preserving comments in scripts | AOSG::FILTER | Automatic Posting Software - mail to flume::puck | Mon Jun 05 1995 19:57 | 26 |
Date Of Receipt: 5-JUN-1995 17:56:04.18 From: SMURF::FLUME::jmcg "Jim McGinness" To: frank@DEC:.zko.flume CC: buildhelp@DEC:.zko.flume Subj: Re: preserving comments in scripts If the script is really a script and not a DATAFILE, the comments are stripped by action of one of the macros: SED_KSH_STRIP SED_SH_STRIP SED_CSH_STRIP declared in usr/lib/makefiels/scripts.mk. To override this macro, you would modify the Makefile to include a line like SED_OPTIONS =-e 's/^//' -e t or, if you only want this treatment for one specific target named "myscript", a line like myscript_SEC_OPTIONS =-e 's/^//' -e t This substitution always succeeds, so the t branch to end-of-script is always taken. This branches around the comment-stripping action. |