24 lines
No EOL
790 B
Text
24 lines
No EOL
790 B
Text
(: update xq4 sources :)
|
|
declare variable $BASE:=file:base-dir() || "../";
|
|
|
|
declare variable $CAT:=(
|
|
{ "description":"XQ4 function catalog",
|
|
"src":"https://raw.githubusercontent.com/qt4cg/qtspecs/master/specifications/xpath-functions-40/src/function-catalog.xml",
|
|
"dest": "bundles/grammar/function-catalog.xml"},
|
|
|
|
{ "description":"XQ4 grammar",
|
|
"src":"https://raw.githubusercontent.com/GuntherRademacher/rex-parser-generator/refs/heads/main/docs/sample-grammars/XQuery-40.ebnf",
|
|
"dest": "bundles/grammar/XQuery-40.ebnf"}
|
|
);
|
|
|
|
declare function local:resolve($dest){
|
|
file:resolve-path($dest,$BASE)
|
|
};
|
|
|
|
declare function local:update($item as map(*)){
|
|
file:write-binary(
|
|
file:resolve-path($item?dest,$BASE),
|
|
fetch:binary($item?src)
|
|
)
|
|
};
|
|
$CAT!local:update(.) |