![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#3
| |||
| |||
|
|
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 (AT) iiug (DOT) 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 (AT) hotmail (DOT) 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 (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Sometimes we did, sometimes we didn't. We're talking 18 years of letting programmers do pretty much what they wanted to do, with the result a rather large steaming pile. Most of them are gone, and a couple are even deceased. Thanks, Todd. ------------------------------ From: art.kagel (AT) gmail (DOT) com Date: Fri, 27 Aug 2010 09:43:50 -0400 Subject: Re: Program to pull 4gos back out of a 4gi? To: tmroy (AT) hotmail (DOT) com CC: informix-list (AT) iiug (DOT) org 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 (AT) iiug (DOT) 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 (AT) hotmail (DOT) 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 (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#6
| |||
| |||
|
|
* *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. |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |