Re: Program to pull 4gos back out of a 4gi?
Posted in 2010
OK, that was an odd mix of C-ish and 4GL-ish code, but you get the idea. Art Art S. Kagel Advanced DataTools (www.advancedatatools.com) IIUG Board of Directors (art@iiug.org) Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves. On Fri, Aug 27, 2010 at 9:43 AM, Art Kagel <art.kagel@gmail.com> wrote: > If you are using version control, there should be version strings in the > source code. You should be assigning copies of those strings into data > objects so that they appear in the object files (.4go) and so get included > in the executables. Then you can search for these strings to see what > versions of the source were included in the executable. For example, using > RCS or CVS, you would do: > > char Revision[] = "$Source$: $Revision$"; > > RCS/CVS will expand this at checkout time into the source filename and > revision strings, so something like: > > char Revision[] = "$Source: mylib_func.4gl $: $Revision: 2.3 $"; > > Then you can use the RCS ident utility or the UNIX strings utility piped > into grep to find the versions that are included in the executable: > > ident myapplication.4gi > ... > $Source: mylib_func.4gl $: $Revision: 2.3 $"; > ... > > or > strings myapplication.4gi | egrep 'Revision|Source' > > Art > . > Art S. Kagel > Advanced DataTools (www.advancedatatools.com) > IIUG Board of Directors (art@iiug.org) > > Disclaimer: Please keep in mind that my own opinions are my own opinions > and do not reflect on my employer, Advanced DataTools, the IIUG, nor any > other organization with which I am associated either explicitly, implicitly, > or by inference. Neither do those opinions reflect those of other > individuals affiliated with any entity with which I am affiliated nor those > of the entities themselves. > > > > On Fri, Aug 27, 2010 at 9:13 AM, Todd Roy <tmroy@hotmail.com> wrote: > >> Hi all, >> Does anybody have a program, or know of a program that will >> deconcatenate the 4go components >> out of a 4gi? I know that this shouldn't be too hard to whip up, I'm >> just looking to save myself some >> work. >> >> Our problem is that we have multiple versions of some function modules >> and we are not always >> sure what versions are actually in production. >> >> >> Thanks, >> Todd >> >> >> >> _______________________________________________ >> Informix-list mailing list >> Informix-list@iiug.org >> http://www.iiug.org/mailman/listinfo/informix-list >> >> >