[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference smurf::buildhelp

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

2070.0. "Passing source through filter on checkin and checkout." by AOSG::FILTER (Automatic Posting Software - mail to flume::puck) Mon Jan 29 1996 18:26

Date Of Receipt: 	25-JAN-1996 12:49:15.70
From: 	SMURF::WASTED::"fenster@star.zko.dec.com"
To: 	ODEHELP@zk3.dec.com
CC: 	
Subj: 	Passing source through filter on checkin and checkout.

Is there a way to hook ode so that I can pass the checked in/out source code
through a filter after/before the user gets it ?

	Thanx in advance

		Yaacov
% -------------------------------------------------
% Yaacov Fenster		(603)-881-1154  DTN 381-1154
% y.fenster@ieee.org	       fenster@star.enet.dec.com 
% Policy 1: All phone calls are to be returned right away.
% Policy 2: All e-mail messages are to be responded to (and hopefully resolved)
%           within 24 hours of reading.
% All the opinions voiced are mine alone and do not reflect anyone else's 
% opinion. (Including my employer's).

T.RTitleUserPersonal
Name
DateLines
2070.1Re: Passing source through filter on checkin and checkout.AOSG::FILTERAutomatic Posting Software - mail to flume::puckMon Jan 29 1996 18:2954
Date Of Receipt: 	25-JAN-1996 14:07:19.22
From: 	SMURF::WASTED::"jmf@bolt.zk3.dec.com"
To: 	fenster@star.zko.dec.com
CC: 	odehelp@zk3.dec.com
Subj: 	Re: Passing source through filter on checkin and checkout.

Yaacov, when you say "before the user gets it", do you mean the 
"end customer" on an installed system?

The source that you bci/bsubmit is in the src pool, src files do not
ship to customers on the kit, but only files in the output tree (which
first get built in the obj tree).

Therefore, as part of getting the file into obj and output, you can,
in your Makefile, do whatever you want.  If it's a matter of a sed
script, our makefiles are already setup for this; just identify the
files as DATAFILES and set SED_OPTIONS appropriately.  If it's more
complicated, you may need to have your filter as a separate script
submitted into the source pool, which you execute using "sh ..." from
the Makefile.  

For makefile help please mail to buildhelp if need assistance; there
are examples in the pool of customized makefiles which use specialized
filters or executables as part of the build process.  Look for example
at the 'zic' or 'tic' code.

-josh

----------
From fenster@star.zko.dec.com  Thu Jan 25 12:47:25 1996
Delivery-Date: Thu, 25 Jan 96 12:47:41 -0500
Date: Thu, 25 Jan 1996 12:47:49 -0500
From: fenster@star.zko.dec.com (Yaacov Fenster, Process Improvement, Quality and testing tools @ZKO3/4W15 381-1154)
To: ODEHELP@zk3.dec.com
Subject: Passing source through filter on checkin and checkout.
X-Vms-To: ODEHELP@ZK3.DEC.COM
X-Vms-Cc: FENSTER

Is there a way to hook ode so that I can pass the checked in/out source code
through a filter after/before the user gets it ?

	Thanx in advance

		Yaacov
% -------------------------------------------------
% Yaacov Fenster		(603)-881-1154  DTN 381-1154
% y.fenster@ieee.org	       fenster@star.enet.dec.com 
% Policy 1: All phone calls are to be returned right away.
% Policy 2: All e-mail messages are to be responded to (and hopefully resolved)
%           within 24 hours of reading.
% All the opinions voiced are mine alone and do not reflect anyone else's 
% opinion. (Including my employer's).


2070.2Re: Passing source through filter on checkin and checkout.AOSG::FILTERAutomatic Posting Software - mail to flume::puckMon Jan 29 1996 18:4834
Date Of Receipt: 	25-JAN-1996 14:57:57.72
From: 	SMURF::WASTED::"tresvik@zk3.dec.com" "Tom Tresvik"
To: 	"Yaacov Fenster, Process Improvement, Quality and testing tools @ZKO3/4W15 381-1154" <fenster@star.zko.dec.com>
CC: 	ODEHELP@zk3.dec.com
Subj: 	Re: Passing source through filter on checkin and checkout.

Yaacov,

While you may get a "yes" answer, I'm sure we'd like to know what you 
intend to do inside sych a filter.  If your improving the tools, then we 
should consider such improvements for everyone.  Remember we all use a 
common tool set.

Tom

-----------------
Yaacov Fenster, Process Improvement, Quality and testing tools 
@ZKO3/4W15 381-1154 wrote:
> 
> Is there a way to hook ode so that I can pass the checked in/out source code
> through a filter after/before the user gets it ?
> 
>         Thanx in advance
> 
>                 Yaacov
> % -------------------------------------------------
> % Yaacov Fenster                (603)-881-1154  DTN 381-1154
> % y.fenster@ieee.org           fenster@star.enet.dec.com
> % Policy 1: All phone calls are to be returned right away.
> % Policy 2: All e-mail messages are to be responded to (and hopefully resolved)
> %           within 24 hours of reading.
> % All the opinions voiced are mine alone and do not reflect anyone else's
> % opinion. (Including my employer's).

2070.3Re: Passing source through filter on checkin and checkout.AOSG::FILTERAutomatic Posting Software - mail to flume::puckMon Jan 29 1996 21:3484
Date Of Receipt: 	29-JAN-1996 10:49:20.90
From: 	SMURF::FLUME::jmf "Joshua M. Friedman OSF/UNIX SDE  29-Jan-1996 1046"
To: 	fenster@star.zko.dec.com
CC: 	jmf@DEC:.zko.flume, tresvik@DEC:.zko.flume, odehelp@DEC:.zko.flume
Subj: 	Re: Passing source through filter on checkin and checkout.

Yaacov, can you explain more about what you'd like to achieve; can you
provide an example?  From the configuration management standpoint, I can't
see any reason why one would want the source code that is under the CM
system to be different than the source code as it presents itself when
the file's checked-out for edit, which is how I interpret your question:

> I mean the source code. Let's say that I want to check out file a.c.
> I want the ability to modify it in the process of being checked out and
> in the process of checking it back in. (Not neccessarily the same way)

Logically, this would mean that the file that is in the pool after the
check-in is not the same as was tested.  Similarly, the file in the
user sandbox after a check-out is not the same as the file in the
product build.

I don't get what you're trying to do???

-josh


------- Forwarded Message

Date: Sun, 28 Jan 1996 19:49:39 -0500
Message-Id: <96012819493890@star.zko.dec.com>
From: fenster@star.zko.dec.com (Yaacov Fenster, Process Improvement, Quality 
and testing tools @ZKO3/4W15 381-1154)
To: JMF@zk3.dec.com
Subject: Resend:  Re: Passing source through filter on checkin and checkout.

> From:	SMTP%"jmf@bolt.zk3.dec.com" 25-JAN-1996 14:07:34.76
> To:	fenster@star.zko.dec.com
> CC:	odehelp@zk3.dec.com
> Subj:	Re: Passing source through filter on checkin and checkout.
> 
> Yaacov, when you say "before the user gets it", do you mean the 
> "end customer" on an installed system?
> 
> The source that you bci/bsubmit is in the src pool, src files do not
> ship to customers on the kit, but only files in the output tree (which
> first get built in the obj tree).

I mean the source code. Let's say that I want to check out file a.c.
I want the ability to modify it in the process of being checked out and
in the process of checking it back in. (Not neccessarily the same way)

> 
> Therefore, as part of getting the file into obj and output, you can,
> in your Makefile, do whatever you want.  If it's a matter of a sed
> script, our makefiles are already setup for this; just identify the
> files as DATAFILES and set SED_OPTIONS appropriately.  If it's more
> complicated, you may need to have your filter as a separate script
> submitted into the source pool, which you execute using "sh ..." from
> the Makefile.  
> 
> For makefile help please mail to buildhelp if need assistance; there
> are examples in the pool of customized makefiles which use specialized
> filters or executables as part of the build process.  Look for example
> at the 'zic' or 'tic' code.

Thanks for the tip. While I don't need it at the moment, you never know when I 
might.

	Yaacov
% -------------------------------------------------
% Yaacov Fenster		(603)-881-1154  DTN 381-1154
% y.fenster@ieee.org	       fenster@star.enet.dec.com 
% Policy 1: All phone calls are to be returned right away.
% Policy 2: All e-mail messages are to be responded to (and hopefully resolved)
%           within 24 hours of reading.
% All the opinions voiced are mine alone and do not reflect anyone else's 
% opinion. (Including my employer's).


------- End of Forwarded Message