#!/bin/bash # SPDX-FileCopyrightText: 2025 artlog@l0g.eu # SPDX-License-Identifier: AGPL-3.0-or-later # header generated by lib/metascript.sh header # metascript_version=v1.0.0 toolsdir=lib pushd $toolsdir >/dev/null toolsdir=$(pwd) source metascript.sh popd >/dev/null usage() { cat < 0 ]] do case "$1" in use_jackson) use_jackson=$1 ;; use_zstd) use_zstd=$1 ;; use_artgraphic) use_artgraphic=$1 ;; *) parsemetaarg "$1" ;; esac shift done if [[ ! -d libs ]] then $metarun mkdir libs fi if [[ -n $user_artgraphic ]] then if [[ ! -d sharedrawweb ]] then log_error "expected a sharedrawweb project parent ( for exports ). Please clone related project." log_info "git clone $sharedrawweb_git_url sharedrawweb" fi if [[ ! -e libs/$lib_artgaphic ]] then lib_artgaphic_source_file=sharedrawweb/dist/lib/$lib_artgaphic if [[ -f $lib_artgaphic_source_file ]] then # ../ since libs is one level below current project $metarun ln -s ../$lib_artgaphic_source_file libs/ else log_error "Missing $lib_artgaphic_source_file" log_info "It is required to build sharedrawweb project first" fi fi fi if [[ -n $use_jackson ]] then fetch_jackson_databind fi if [[ -n $use_zstd ]] then fetch_zstd-jni fi