portal/tools/build

21 lines
384 B
Text
Raw Permalink Normal View History

2024-06-02 11:56:52 +02:00
#!/usr/bin/env sh
## consts
dir_source="source"
## args
if [ $# -ge 1 ] ; then dir_build=$1 && shift ; else dir_build="/tmp/portal" ; fi
if [ $# -ge 1 ] ; then path_data=$1 && shift ; else path_data="" ; fi
## exec
mkdir --parents ${dir_build}
cp --recursive ${dir_source}/* ${dir_build}/
test -z ${path_data} || cp ${path_data} ${dir_build}/data.json
2024-07-30 10:01:39 +02:00
echo "-- ${dir_build}"
2024-06-02 11:56:52 +02:00