Skip to content

Commit

Permalink
make _global symlink its own ibek-support
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Oct 4, 2024
1 parent 5a164bd commit 91e5cf5
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 11 deletions.
5 changes: 4 additions & 1 deletion _global/install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash

# global install script for support all support modules to reference
# global install script for all support modules to reference
set -xe
NAME=${1}
FOLDER=$(dirname $(readlink -f $0))

x86_cfg='configure/CONFIG_SITE.Common.linux-x86_64'
support_x86=${SUPPORT}/${NAME}/${x86_cfg}
Expand All @@ -16,3 +17,5 @@ if [[ $EPICS_TARGET_ARCH == "RTEMS"* ]]; then
echo "VALID_BUILDS=Host" >> ${support_x86}
fi

# prepare *.bob, *.pvi, *.ibek.support.yaml for access outside the container.
ibek support generate-links ${FOLDER}
2 changes: 1 addition & 1 deletion asyn/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ ibek support add-config-macro ${NAME} TIRPC YES
sed -i -E 's/(^[^#].*(test|iocBoot).*$)/# \1/' ${SUPPORT}/${NAME}/Makefile

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# compile the support module
ibek support compile ${NAME}
Expand Down
2 changes: 1 addition & 1 deletion busy/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ibek support add-dbds busySupport.dbd
sed -i '/testBusy/d' ${SUPPORT}/${NAME}/busyApp/src/Makefile

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# compile the support module
ibek support compile ${NAME}
Expand Down
2 changes: 1 addition & 1 deletion calc/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ibek support add-dbds aCalcoutRecord.dbd calc.dbd calcSupport.dbd sCalcoutReco
sed -i -E 's/tests/# tests/' ${SUPPORT}/${NAME}/Makefile

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# compile the support module
ibek support compile ${NAME}
Expand Down
2 changes: 1 addition & 1 deletion iocStats/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ibek support add-libs devIocStats
ibek support add-dbds devIocStats.dbd

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# comment out the test directories from the Makefile
sed -i -E 's/(^[^#].*+= test.*$)/# \1/' ${SUPPORT}/${NAME}/Makefile
Expand Down
2 changes: 1 addition & 1 deletion ipac/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ibek support add-libs Ipac
ibek support add-dbds drvIpac.dbd

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# comment out directories that don't build from the Makefile
sed -i -E 's/(^[^#].*(tyGSOctal).*$)/# \1/' ${SUPPORT}/${NAME}/Makefile
Expand Down
2 changes: 1 addition & 1 deletion lakeshore340/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ibek support register ${NAME}
sed -i -E 's/(^[^#].*documentation)/# \1/' ${SUPPORT}/${NAME}/Makefile

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# compile the support module
ibek support compile ${NAME}
Expand Down
2 changes: 1 addition & 1 deletion motor/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ibek support add-libs motor softMotor
ibek support add-dbds motorRecord.dbd devSoftMotor.dbd motorSupport.dbd

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# compile the support module
ibek support compile ${NAME}
Expand Down
2 changes: 1 addition & 1 deletion sequencer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ibek support register ${NAME} --macro SNCSEQ
ibek support add-libs pv seq

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# comment out tests and examples from the Makefile
sed -i -E 's/(^[^#].*+= (examples|test).*$)/# \1/' ${SUPPORT}/${NAME}/Makefile
Expand Down
2 changes: 1 addition & 1 deletion snmp/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ibek support add-config-macro ${NAME} USR_INCLUDES
ibek support add-config-macro ${NAME} USR_LDFLAGS

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# compile the support module
ibek support compile ${NAME}
Expand Down
2 changes: 1 addition & 1 deletion terminalserver/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ibek support register ${NAME}
ibek support add-dbds terminalServer.dbd

# global config settings
${FOLDER}/../_global/install.sh
${FOLDER}/../_global/install.sh ${NAME}

# compile the support module
ibek support compile ${NAME}
Expand Down

0 comments on commit 91e5cf5

Please sign in to comment.