version feedback (trunk only)

Show the 'v' output (full version number plus build date-time) as
the first line of '#version' output (build time configuration settings).
It isn't simple to do that when generating dat/options (there's some
port-specific tweaking going), so do it at run-time by processing that
file one line at a time instead of passing it through a pager routine.

     This also inserts an "About NetHack" entry as the first choice in
the menu for '?', the way that most Windows programs have interactive
help organized.  Picking that gives the same output as using #version.

'make depend' manually updated for Unix and VMS (add dlb.h to version.*).
This commit is contained in:
nethack.rankin
2011-09-23 07:33:18 +00:00
parent 795c0a3a8d
commit 2ba506b385
5 changed files with 93 additions and 29 deletions

View File

@@ -469,7 +469,7 @@ trap.obj : trap.c $(HACK_H)
u_init.obj : u_init.c $(HACK_H)
uhitm.obj : uhitm.c $(HACK_H)
vault.obj : vault.c $(HACK_H)
version.obj : version.c $(HACK_H) $(INC)date.h $(INC)patchlevel.h
version.obj : version.c $(HACK_H) $(INC)dlb.h $(INC)date.h $(INC)patchlevel.h
vision.obj : vision.c $(HACK_H) $(INC)vis_tab.h
weapon.obj : weapon.c $(HACK_H)
were.obj : were.c $(HACK_H)