Skip to content

Commit

Permalink
make example ioc independent of Diamond
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed May 25, 2018
1 parent 2f648ab commit afe5621
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
8 changes: 3 additions & 5 deletions iocs/example/configure/RELEASE
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# This file was automatically generated on Fri 25 May 2018 08:06:10 BST from
# source: /home/hgv27681/R3.14.12.3/support/pmac/etc/makeIocs/lab.xml
#
# *** Please do not edit this file: edit the source file instead. ***
# The following definitions must be changed for each site
#
# Common prefixes
SUPPORT = /dls_sw/prod/R3.14.12.3/support
Expand All @@ -10,6 +7,7 @@ ASYN = $(SUPPORT)/asyn/4-31
BUSY = $(SUPPORT)/busy/1-6-1dls1
CALC = $(SUPPORT)/calc/3-1
MOTOR = $(SUPPORT)/motor/6-9dls14
PMAC = /home/hgv27681/R3.14.12.3/support/pmac
PMAC = $(TOP)/../../
# EPICS Base appears last
EPICS_BASE = /dls_sw/epics/R3.14.12.3/base
EPICS_EXTENSIONS = /dls_sw/epics/R3.14.12.3/extensions
2 changes: 1 addition & 1 deletion iocs/example/iocBoot/ioclab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOP)/configure/CONFIG

SCRIPTS += ../stlab.sh
SCRIPTS += stlab.boot
PATH := $(PATH):/dls_sw/epics/R3.14.12.3/extensions/bin/linux-x86_64
PATH := $(PATH):$(EPICS_EXTENSIONS)/bin/linux-x86_64

include $(TOP)/configure/RULES

2 changes: 1 addition & 1 deletion iocs/example/labApp/Db/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
TOP = ../..
include $(TOP)/configure/CONFIG

PATH := $(PATH):/dls_sw/epics/R3.14.12.3/extensions/bin/linux-x86_64
PATH := $(PATH):$(EPICS_EXTENSIONS)/bin/linux-x86_64
DB += lab_expanded.db
DB += lab.db

Expand Down
12 changes: 8 additions & 4 deletions iocs/example/labApp/opi/edl/stlab-gui
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/sh
TOP="$(cd $(dirname "$0")/../..; pwd)"

# The following two definitions must be changed for each site
MOTOR="/dls_sw/prod/R3.14.12.3/support/motor/6-9dls14"
PMAC="/home/hgv27681/R3.14.12.3/support/pmac"

# first load the paths. These have been generated from the configure/RELEASE
# tree. If we have a -d arg then load the opi/edl paths first
shopt -s nullglob
Expand All @@ -10,16 +14,16 @@ if [ "$1" = "-d" ]; then
EDMDATAFILES="${EDMDATAFILES}${d}:"
done
EDMDATAFILES="${EDMDATAFILES}${TOP}/data:"
EDMDATAFILES="${EDMDATAFILES}/dls_sw/prod/R3.14.12.3/support/motor/6-9dls14/motorApp/opi/edl:"
EDMDATAFILES="${EDMDATAFILES}/home/hgv27681/R3.14.12.3/support/pmac/pmacApp/opi/edl:"
EDMDATAFILES="${EDMDATAFILES}${MOTOR}/motorApp/opi/edl:"
EDMDATAFILES="${EDMDATAFILES}${PMAC}/pmacApp/opi/edl:"

OPTS="-x -eolc"
else
OPTS="-x -eolc -noedit"
fi
EDMDATAFILES="${EDMDATAFILES}${TOP}/data"
EDMDATAFILES="${EDMDATAFILES}:/dls_sw/prod/R3.14.12.3/support/motor/6-9dls14/data"
EDMDATAFILES="${EDMDATAFILES}:/home/hgv27681/R3.14.12.3/support/pmac/data"
EDMDATAFILES="${EDMDATAFILES}:${MOTOR}/data"
EDMDATAFILES="${EDMDATAFILES}:${PMAC}/data"

export EDMDATAFILES

Expand Down

0 comments on commit afe5621

Please sign in to comment.