From KevinS: update sys/vms/install.com
Include a template sysconf file when setting up the playground directory. TODO: provide a sys/vms/sysconf template sysconf file....
This commit is contained in:
Executable → Regular
+12
@@ -26,6 +26,7 @@ $ ! to avoid inadvertent logical name interaction
|
|||||||
$ play_files = "PERM.,RECORD.,LOGFILE.,PANICLOG."
|
$ play_files = "PERM.,RECORD.,LOGFILE.,PANICLOG."
|
||||||
$ help_files = "HELP.,HH.,CMDHELP.,WIZHELP.,OPTHELP.,HISTORY.,LICENSE."
|
$ help_files = "HELP.,HH.,CMDHELP.,WIZHELP.,OPTHELP.,HISTORY.,LICENSE."
|
||||||
$ data_files = "DATA.,RUMORS.,ORACLES.,OPTIONS.,QUEST.DAT,TRIBUTE."
|
$ data_files = "DATA.,RUMORS.,ORACLES.,OPTIONS.,QUEST.DAT,TRIBUTE."
|
||||||
|
$ sysconf_file = "[.sys.vms]sysconf"
|
||||||
$ guidebook = "[.doc]Guidebook.txt"
|
$ guidebook = "[.doc]Guidebook.txt"
|
||||||
$ invoc_proc = "[.sys.vms]nethack.com"
|
$ invoc_proc = "[.sys.vms]nethack.com"
|
||||||
$ trmcp_file = "[.sys.share]termcap"
|
$ trmcp_file = "[.sys.share]termcap"
|
||||||
@@ -230,6 +231,17 @@ $ call copy_file 'trmcp_file' 'gamedir'termcap "r"
|
|||||||
$skip_termcap:
|
$skip_termcap:
|
||||||
$ if p3.nes."" then exit
|
$ 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
|
$! done
|
||||||
$ milestone "<done>"
|
$ milestone "<done>"
|
||||||
$ define/nolog nethackdir 'gamedir'
|
$ define/nolog nethackdir 'gamedir'
|
||||||
|
|||||||
Reference in New Issue
Block a user