Archived
1
0
forked from rarias/bscpkgs

Add intel-hpckit-2025 as default intelPackages

Also introduces hpckit_2024
This commit is contained in:
2025-05-13 18:35:39 +02:00
parent f5451b3b91
commit cc7f7c0e8c
9 changed files with 149944 additions and 17 deletions

29
pkgs/intel-oneapi/toJson.awk Executable file
View File

@@ -0,0 +1,29 @@
#!/usr/bin/env -S awk -f
BEGIN {
FS=": "
prev_empty=1
t=" "
print "[ {"
}
!NF { # empty line, update separator so next non empty line closes the dict
prev_empty=1
t="},\n{ "
next # skip line (we won't match anything else)
}
{
printf t "\"%s\" : \"%s\"\n", $1, $2
if (prev_empty) {
# we were the first after a group of empty lines, following ones have to
# have a comma
prev_empty=0
t=", "
}
}
END { print "} ]" }