Added envPaths functionality, and using these variables in st.cmd files

This commit is contained in:
Andrew Johnson
2003-07-23 22:08:50 +00:00
parent 9b2d79a5c8
commit b9fb6caffb
8 changed files with 50 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
TOP = ../..
include $(TOP)/configure/CONFIG
#nothing to do
ARCH = _ARCH_
TARGETS = envPaths
include $(TOP)/configure/RULES.ioc

View File

@@ -3,20 +3,25 @@
## You may have to change _APPNAME_ to something else
## everywhere it appears in this file
< envPaths
cd ${TOP}
## Register all support components
dbLoadDatabase("../../dbd/_APPNAME_.dbd",0,0)
dbLoadDatabase("dbd/_APPNAME_.dbd",0,0)
_APPNAME__registerRecordDeviceDriver(pdbbase)
## Load record instances
dbLoadRecords("../../db/dbExample1.db","user=_USER_Host")
dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=1,scan=1 second")
dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=2,scan=2 second")
dbLoadRecords("../../db/dbExample2.db","user=_USER_Host,no=3,scan=5 second")
dbLoadRecords("../../db/dbSubExample.db","user=_USER_Host")
dbLoadRecords("db/dbExample1.db","user=_USER_Host")
dbLoadRecords("db/dbExample2.db","user=_USER_Host,no=1,scan=1 second")
dbLoadRecords("db/dbExample2.db","user=_USER_Host,no=2,scan=2 second")
dbLoadRecords("db/dbExample2.db","user=_USER_Host,no=3,scan=5 second")
dbLoadRecords("db/dbSubExample.db","user=_USER_Host")
## Set this to see messages from mySub
#var mySubDebug 1
cd ${TOP}/iocBoot/${IOC}
iocInit()
## Start any sequence programs

View File

@@ -3,6 +3,8 @@
## You may have to change _APPNAME_ to something else
## everywhere it appears in this file
#< envPaths
## Register all support components
dbLoadDatabase("dbd/_APPNAME_.dbd",0,0)
_APPNAME__registerRecordDeviceDriver(pdbbase)