Fixing regression bug caused by DELIMITER change in the supported devices script

+ Adding ability to manually run "Supported Devices" job
+ Changing `Delimiter` from UTF8 to ASCII character
This commit is contained in:
Chris 2022-08-31 14:15:14 +10:00 committed by Adam Honse
parent ec6a19eef9
commit 1f6580ebc5
2 changed files with 5 additions and 2 deletions

View file

@ -23,7 +23,7 @@ MAIN_FILE='Supported Devices.md'
#make -j$(nproc)
## The HID list is produced from each "REGISTER_DETECTOR" macro replacement.
DELIMITER='‖'
DELIMITER=$'\x01'
## | callback_function | VID | PID | Name |
HID_LIST=$(grep -hR -e "static\ HIDDeviceDetector" . | cut -d '(' -f 2- | awk -F , -v delim="${DELIMITER}" '{ print $2 ":"delim $3 delim $4 delim $1 delim }')
I2C_LIST=$(grep -hR -e "static\ I2CPCIDeviceDetector" . | cut -d '(' -f 2- | awk -F , -v delim="${DELIMITER}" '{ print $2 ":"delim $3 delim $4 delim $5 delim $6 delim $1 delim }')
@ -233,7 +233,7 @@ do
do
case $type in
USB)
IFS="${DELIMITER}" read null vid pid device_name null <<<"$device"
IFS="${DELIMITER}" read null vid pid device_name null <<< "${device}"
#Remove leading hex signifier from $vid and $pid
vid=${vid/0x/}
pid=${pid/0x/}