Source:NetHack 5.0.0/dat/GENFILES

From NetHackWiki
Jump to navigation Jump to search

Below is the full text to GENFILES from the source code of NetHack 5.0.0. To link to a particular line, write [[Source:NetHack 5.0.0/dat/GENFILES#line12]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

1. #!/usr/bin/perl
2. # NetHack 5.0   GENFILES      $NHDT-Date: 1596498242 2020/08/03 23:44:02 $  $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.2 $
3. #       Copyright (c) 2018 by Kenneth Lorber
4. # NetHack may be freely redistributed.  See license for details.
5. 
6. # 2 sections:
7. #   *.lev entries are generated by reading *.des
8. #   hardcoded entries are in __DATA__
9. 
10. ($dir = $0) =~ s!^(.*/)(.*)!$1!;
11. 
12. #print "T (files generated by lev_comp at playground creation time)\n";
13. #
14. #foreach $des (<$dir*.des>){
15. #    open IN, "<", $des or warn("Can't open $des: $!");
16. #    while(<IN>){
17. #	m/^(MAZE|LEVEL):\s*"(.*?)"/ && do {
18. #	    print "F $2.lev\n";
19. #	};
20. #    }
21. #    close IN;
22. #}
23. while(){
24.     print;
25. }
26. 
27. __DATA__
28. T (tile files optionally generated for X ports at playground creation time)
29. F pet_mark.xbm
30. F rip.xpm
31. F x11tiles
32. T (files generated for Qt interface on macOS)
33. F nethack.icns
34. F Info.plist
35. T (files generated for windows at compile time)
36. F porthelp
37. F dlb.lst
38. T (files generated for windows tty at compile time)
39. F ttyoptions
40. T (files generated for windows gui at compile time)
41. F guioptions
42. T (files generated by makedefs at playground creation time)
43. F data
44. F options
45. F oracles
46. F rumors