Waldemar Schultz escribió:
Mariano Alvarez Fernandez wrote:
What about installing the file grx*.inf to $DJDIR/info/grx.inf ? so one can type 'info grx' to get started.
OK, but some aditional thing is needed to add it to the main menu, do you know what is it? (sorry my knowledge about info is very low)
GRX
- GRX: (grx). GRAPHICS
AFAIK these two lines have to be inserted into file '$DJDIR/info/dir' if not already present, so we need something like sed to do it :( maybe there exists a tool for it (installinfo?)
Some body knows?
void __gr_cleardevice(void) { _DO_INIT_CHECK; GrResetClipBox(); //why twice? //wsz GrFilledBox( 0, 0+PY, getmaxx(), getmaxy()+PY, BLACK); __gr_Reset_ClipBox(); //why twice? GrClearScreen(__gr_colorbg); //wsz moveto( 0, 0); }
I'm not sure (I don't use and don't know well bccgrx), but I think we have discuss this some time ago and Harmuth said GrFilledBox is necesary to simulate screen pages. But the issue, can be fixed changing BLACK to __gr_colorbg?
GrFilledBox( 0, 0+PY, getmaxx(), getmaxy()+PY, __gr_colorbg); seems to work fine. IMHO we should simply change it.
OK
Mariano Alvarez Fernandez wrote:
Waldemar Schultz escribió:
Mariano Alvarez Fernandez wrote:
What about installing the file grx*.inf to $DJDIR/info/grx.inf ? so one can type 'info grx' to get started.
OK, but some aditional thing is needed to add it to the main menu, do you know what is it? (sorry my knowledge about info is very low)
GRX
- GRX: (grx). GRAPHICS
AFAIK these two lines have to be inserted into file '$DJDIR/info/dir' if not already present, so we need something like sed to do it :( maybe there exists a tool for it (installinfo?)
Some body knows?
from within the %DJDIR%\info directory and after copying the grx242um.inf file there you can issue
install-info -e "* grx (grx242um). GRAPHICS" grx242um.inf dir
if you do not want to cd to that directory you may use the /dev/env/DJDIR/ syntax (valid from v2.03) i.e.
cp grx242um.inf /dev/env/DJDIR/info/grx242um.inf install-info -e "* grx (grx242um). GRAPHICS" \ /dev/env/DJDIR/info/grx242um.inf \ /dev/env/DJDIR/info/dir (I have checked) In fact in would be better to rename everywhere grx242um.inf as grx.inf (or grx.info) so that every new version replaces the old one instead of adding a new entry.
Maurice
from within the %DJDIR%\info directory and after copying the grx242um.inf file there you can issue
install-info -e "* grx (grx242um). GRAPHICS" grx242um.inf dir
if you do not want to cd to that directory you may use the /dev/env/DJDIR/ syntax (valid from v2.03) i.e.
cp grx242um.inf /dev/env/DJDIR/info/grx242um.inf install-info -e "* grx (grx242um). GRAPHICS" \ /dev/env/DJDIR/info/grx242um.inf \ /dev/env/DJDIR/info/dir (I have checked) In fact in would be better to rename everywhere grx242um.inf as grx.inf (or grx.info) so that every new version replaces the old one instead of adding a new entry.
Thanks Maurice. But I don't know why it doesn't work for me, install-info run without a warning, the menu item is added, but I can not follow the link (neither info grx242um works).
I'd like to propose the following changes, at least for DJGPP, I didn't check the other platforms yet. Worked fine for me.
diff makedefs.grx r:makedefs.grx < ================================ 118,119d117 < # If you want to use 'upx.exe' compressor < # disable the echo line and enable upx line. 122d119 < #EXE_COMPRESS = upx --best 126c123 < # At present gcc supports `-m386' , `-m486' and `-mpentium'. ---
# At present gcc supports `-m386' and `-m486'.
129d125 < #CCOPT += -mpentium
diff src/makefile.dj2 r:src/makefile.dj2 ======================================== 131,134d130 < if exist $(DJDIRdos)\bin\cp.exe \ < cp ..\doc\grx*um.inf /dev/env/DJDIR/info/grx.inf < if exist $(DJDIRdos)\bin\cp.exe \ < install-info -e "* grx: (grx). GRAPHICS" /dev/env/DJDIR/info/grx.inf < /dev/env/DJDIR/info/dir
diff readme r:readme ==================== 63,66d62 < For DJGPP: < A working DJGPP installation < plus file utilities fil*.zip (e.g.: fil316b.zip) installed. < 89,90d84 < or < unzip32 grx242.zip (2) 101c95,97 < 2) run 'make -f <your makefile>' ---
Switch to "src" sub dir and check the makefile
run 'make -f <your makefile>':
115c111,115 < 1) Switch to "test" sub dir ---
Switch to "test" sub dir, check the makefile
run 'make -f <your makefile>'
run the 'demogrx' program
117c117 < 2) run the 'demogrx' program ---
- Switch to "test/bgi" sub dir, check the makefile
119c119 < 3) Switch to "test/bgi" sub dir ---
- run 'make -f <your makefile>'
121c121 < 4) run the 'bccbgi' program ---
- run the 'bccbgi' program
138,139c138 < run 'make -f <your makefile> install'. This will also install the < documentation for use with the 'info' utility. ---
run 'make -f <your makefile> install'.
195,198c194 < Read the user's guide in the "doc/grx242um.htm" file < < or if you ran 'make <your makefile> install', < just type 'info grx' to view the manual. ---
Read the user's guide in the "doc/grx242um.htm" file.
Sorry for following my own post but of course we can do it easyer (weekend is near, brain blackout:)
!diff src/makefile.dj2 r:src/makefile.dj2 !======================================== !131,134d130 !< if exist $(DJDIRdos)\bin\cp.exe \ !< cp ..\doc\grx*um.inf /dev/env/DJDIR/info/grx.inf !< if exist $(DJDIRdos)\bin\cp.exe \ !< install-info -e "* grx: (grx). GRAPHICS" /dev/env/DJDIR/info/grx.inf !< /dev/env/DJDIR/info/dir
+ copy ..\doc\grx*um.inf $(DJDIRdos)\info\grx.inf + install-info -e "* grx: (grx). GRAPHICS" \ + $(DJDIRdos)\info\grx.inf $(DJDIRdos)\info\dir + !so we don't need the fileutils
diff readme r:readme ==================== !63,66d62 !< For DJGPP: !< A working DJGPP installation !< plus file utilities fil*.zip (e.g.: fil316b.zip) installed. !< 89,90d84 < or