mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-25 19:43:49 +08:00
Do not hardcode paths in scripts
Try to reuse the configured paths as much as possible. Unfortunately, to be able to fully expand some variable (e.g. `bindir`), these files must be expanded by make, not by configure. This adds some complexity: https://www.gnu.org/software/automake/manual/html_node/Scripts.html
This commit is contained in:
@@ -38,11 +38,11 @@ MODPROBE=/sbin/modprobe
|
||||
RMMOD=/sbin/rmmod
|
||||
MODINFO=/sbin/modinfo
|
||||
|
||||
ETHERCAT=@prefix@/bin/ethercat
|
||||
ETHERCAT=@bindir@/ethercat
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
ETHERCAT_CONFIG=/etc/ethercat.conf
|
||||
ETHERCAT_CONFIG=@sysconfdir@/ethercat.conf
|
||||
|
||||
if [ ! -r ${ETHERCAT_CONFIG} ]; then
|
||||
echo ${ETHERCAT_CONFIG} not existing;
|
||||
|
||||
Reference in New Issue
Block a user