analogdevicesinc / no-OS

Software drivers in C for systems without an operating system
http://analogdevicesinc.github.io/no-OS/
Other
971 stars 1.67k forks source link

add script to convert Windows to Unix paths #2355

Open buha opened 3 weeks ago

buha commented 3 weeks ago

Pull Request Description

When sourcing an environment script such as the Xilinx's settings64.sh, PATH entries need to be converted to Unix compatible paths. This script can be used to perform the conversion like this:

source tools/scripts/git-bash-paths.sh /c/Xilinx/Vitis/2022.2/settings64.sh

It's not necessarily specific to Xilinx platform but we're currently using it only for this purpose with possibility to extend it for other platforms.

Tested with Vitis 2022.2.

PR Type

PR Checklist

buha commented 11 hours ago

rebase on newsest main because it contains some relevant changes