openvino/samples/cpp
oogee c76b5f2776
Use shell parameter expansion to make getting source path work in non-bash shells (#24598)
Currently `BASH_SOURCE[0]` was used, which is only available on bash.

I changed it to `${BASH_SOURCE:-$0}` which is supported by at least
bash, zsh and dash, as explained by
[https://stackoverflow.com/a/68359914/9028340](https://stackoverflow.com/a/68359914/9028340)

It uses shell parameter expansion

https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html

https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion

Addresses #17392
2024-05-21 15:28:52 +00:00
..
benchmark [DOCS] Update of hyperlinks to 2024 + new ov homepage diagram image for master (#23091) 2024-02-28 07:54:04 +00:00
benchmark_app cpu_convert enable u4/i4 ->f32,bf16,i8,u8 (#24297) 2024-05-16 07:16:55 +00:00
classification_sample_async copyright year update (#23370) 2024-03-14 09:37:02 +00:00
common copyright year update (#23370) 2024-03-14 09:37:02 +00:00
hello_classification copyright year update (#23370) 2024-03-14 09:37:02 +00:00
hello_nv12_input_classification copyright year update (#23370) 2024-03-14 09:37:02 +00:00
hello_query_device copyright year update (#23370) 2024-03-14 09:37:02 +00:00
hello_reshape_ssd copyright year update (#23370) 2024-03-14 09:37:02 +00:00
model_creation_sample copyright year update (#23370) 2024-03-14 09:37:02 +00:00
.clang-format Moved inference_engine samples to cpp folder (#8615) 2021-11-18 10:08:20 +03:00
CMakeLists.txt copyright year update (#23370) 2024-03-14 09:37:02 +00:00
build_samples.ps1 [SCRIPTS] Introduce `build_samples` for Powershell (#22185) 2024-01-20 20:24:34 +04:00
build_samples.sh Use shell parameter expansion to make getting source path work in non-bash shells (#24598) 2024-05-21 15:28:52 +00:00
build_samples_msvc.bat copyright year update (#23370) 2024-03-14 09:37:02 +00:00