From KevinS: update sys/vms/install.com
authorPatR <rankin@nethack.org>
Wed, 2 Dec 2015 01:50:40 +0000 (17:50 -0800)
committerPatR <rankin@nethack.org>
Wed, 2 Dec 2015 01:50:40 +0000 (17:50 -0800)
Include a template sysconf file when setting up the playground directory.
TODO: provide a sys/vms/sysconf template sysconf file....

sys/vms/install.com [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 87f5fb7..21298a9
@@ -26,6 +26,7 @@ $     !       to avoid inadvertent logical name interaction
 $      play_files = "PERM.,RECORD.,LOGFILE.,PANICLOG."
 $      help_files = "HELP.,HH.,CMDHELP.,WIZHELP.,OPTHELP.,HISTORY.,LICENSE."
 $      data_files = "DATA.,RUMORS.,ORACLES.,OPTIONS.,QUEST.DAT,TRIBUTE."
+$      sysconf_file = "[.sys.vms]sysconf"
 $      guidebook  = "[.doc]Guidebook.txt"
 $      invoc_proc = "[.sys.vms]nethack.com"
 $      trmcp_file = "[.sys.share]termcap"
@@ -230,6 +231,17 @@ $ call copy_file 'trmcp_file' 'gamedir'termcap "r"
 $skip_termcap:
 $ if p3.nes."" then  exit
 $!
+$! provide template sysconf file (needed if nethack is built w/ SYSCF enabled)
+$make_sysconf:
+$ if f$search(sysconf_file).eqs."" then  goto skip_sysconf
+$ if f$search("''gamedir'sysconf_file").nes."" then  goto skip_sysconf
+$       milestone "(sysconf)"
+$ call copy_file 'sysconf_file' 'gamedir'sysconf "r"
+$!     owner should be able to manually edit sysconf; others shouldn't
+$ set file/Prot=(s:rwd,o:rwd,g:r,w:r) 'gamedir'sysconf
+$skip_sysconf:
+$ if p3.nes."" then  exit
+$!
 $! done
 $      milestone "<done>"
 $ define/nolog nethackdir 'gamedir'