portal/tools/build
2024-07-30 10:01:39 +02:00

20 lines
384 B
Bash
Executable file

#!/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
echo "-- ${dir_build}"