openocd/src/helper
Andreas Fritiofson 6ddf26c83d Search for scripts relative to the executable on all(?) platforms
Add a helper to hide the platform-dependent method to get a
canonical, absolute, /-separated path to the executable.

Use this and the relative path from BINDIR to PKGDATADIR to
construct a search path that finds the scripts even if the
installation dir is moved, as long as the structure below $prefix
is maintained.

This method should fully support all the tricks you can to with
autotools to customize the installed layout such as overriding the
default directories at configure-time and overriding the configured
directories at build-time.

The exe path detection methods are combined from
http://openocd.zylin.com/3388 by Rick Foos and
http://openocd.zylin.com/3537 by Steven Stallion, as well as tips
found all over internet.

Change-Id: Ifc9cc9dd0bf52fbd67b1b0f2383318cda0c422c4
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Signed-off-by: Steven Stallion <sstallion@gmail.com>
Reviewed-on: http://openocd.zylin.com/3889
Tested-by: jenkins
Reviewed-by: Rick Foos <rfoos@solengtech.com>
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
2016-12-25 09:22:29 +00:00
..
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
bin2char.sh Fix some problems with the bin2char utility 2014-08-02 09:01:32 +00:00
binarybuffer.c helper: Code cleanup for hexify() 2016-12-08 12:34:53 +00:00
binarybuffer.h helper: Code cleanup for hexify() 2016-12-08 12:34:53 +00:00
command.c Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
command.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
configuration.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
configuration.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
fileio.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
fileio.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
ioutil.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
ioutil.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
ioutil_stubs.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
jep106.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
jep106.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
jep106.inc helper: Update jep106 database to JEP106AT 2016-12-08 12:30:14 +00:00
jim-nvp.c jim-nvp: Make Jim_GetOpt_String const-correct 2016-02-29 20:32:31 +00:00
jim-nvp.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
list.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
log.c helper/log: Add log_vprintf_lf() 2016-10-07 12:35:54 +01:00
log.h helper/log: Add log_vprintf_lf() 2016-10-07 12:35:54 +01:00
options.c Search for scripts relative to the executable on all(?) platforms 2016-12-25 09:22:29 +00:00
replacements.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
replacements.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
startup.tcl Tcl exception codes cleanup, shutdown command amendments 2015-04-14 12:11:48 +01:00
system.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
time_support.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
time_support.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
time_support_common.c Fix usage of timeval_ms() 2016-07-19 10:45:16 +01:00
types.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
update_jep106.pl helper: Add converter from JEP106 ID to manufacturer name 2016-01-22 15:02:16 +00:00
util.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
util.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00