> > > > > > C:\~~\TortoiseProc.exe /command:update /path\Source\src /closeonend:1 > > > makeexe32.bat > > > cd D:\ > > REM At this spot you want to run something else > > CodeExtract.exe > > Is this in mingw's folder? It probably is not in there you will have to write something
> > > REM this gets the return error code, in C it is the last thing you spit back out > just > > as you exit main. > > REM this puts the error code returned into a command shell variable > > Whats REM anyway?
REM is batch script for 'remark'. It lets you put comments into your batch files.
> > > SET CODE = %ERRORLEVEL% > > > ren program.exe %CODE%.exe > > > cd D:\Old > > > md %CODE% > > > move D:\*.exe D:\Old\%CODE%\ (code syntax wrong?) > > > move D:\Source\program.exe D:\ (code syntax wrong?) > > > exit > > > > > > > > > Any help? Would making a VBasic program be better? If so what code? > > > > vbasic would work but probably overkill? Just depends. > > > > On a command prompt do 'help set' to see how to mess around with command script > vars. > > At one point I had all sorts of crazy scripts to build and do things. These days I > do > > it in python or C. You eventually get to the point you need functions and batch > files > > just dont cut it. I may have the '%' bits wrong up above. As sometimes you need to > do > > %%ERRORLEVEL%% inside of command files. So you will have to mess around with it a > > bit. I am doing this off the top of my head (its been a long time) so you will have > > to mess with it. > > > > I assume you are trying to create some sort of sub directory that contains the > > version number. You may also while you are building actually have it just go ahead > > and create the directory. I have done that in the past too as the program that is > > doing the compiling usually knows the version number anyway... > > Yes, would it be different for MAME builds?
Not sure about MAME I havent dug into how they do their versioning builds in quite awhile. Someone who builds it everyday could say better than I. But my guess is that it is a #define somewhere in the code. If it were me and I was trying to get the version number I would write a small C application that just returns the version number (by including the appropriate header) or creates the directory I want.
|