update to thumbnailator 0.4.8
This commit is contained in:
parent
b91d5adfcb
commit
4b00a768fa
18 changed files with 303 additions and 98 deletions
34
tools/build.xq
Normal file
34
tools/build.xq
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
(: create o/ps
|
||||
: xar package and xqdoc
|
||||
:)
|
||||
declare namespace pkg="http://expath.org/ns/pkg";
|
||||
import module namespace build = "quodatum.utils.build" at "buildx.xqm";
|
||||
declare variable $base:=resolve-uri("../");
|
||||
declare variable $src:=resolve-uri("../src/main/");
|
||||
declare variable $dest:=resolve-uri("../dist/");
|
||||
|
||||
(:~
|
||||
: the package definition as a pkg:package
|
||||
:)
|
||||
declare variable $package as element(pkg:package) :=doc(resolve-uri("expath-pkg.xml",$src))/pkg:package;
|
||||
|
||||
declare variable $content:=resolve-uri("content/",$src);
|
||||
declare variable $dest-doc:=resolve-uri("doc/",$dest);
|
||||
|
||||
|
||||
let $files:=build:files($src)
|
||||
let $name:= build:xar-name($package)
|
||||
|
||||
return (
|
||||
(: save xqdoc :)
|
||||
build:files($content)!build:write-xqdoc(.,$content,$dest-doc),
|
||||
|
||||
(: write xar file :)
|
||||
file:write-binary(
|
||||
resolve-uri($name,$dest),
|
||||
archive:create($files,$files!file:read-binary(fn:resolve-uri(.,$src)))
|
||||
),
|
||||
|
||||
(: update package.xml located at $cxan :)
|
||||
build:publish($package,resolve-uri("package.xml",$base))
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue