core/tools/build

29 lines
478 B
Plaintext
Raw Normal View History

2025-09-09 12:07:53 +02:00
#!/usr/bin/env sh
## consts
dir_lib=lib
dir_source=source
dir_build=build
name=index.php
2025-09-09 23:17:30 +02:00
## args
if [ $# -ge 1 ] ; then profile=$1 && shift ; else profile="" ; fi
2025-09-09 12:07:53 +02:00
## exec
mkdir -p ${dir_build}
cp -r ${dir_lib}/composer/* ${dir_build}/
mkdir -p ${dir_build}/data
mkdir -p ${dir_build}/public
rm -f ${dir_build}/${name}
cp -r -u -v ${dir_source}/* ${dir_build}/
ln -s main.php ${dir_build}/index.php
2025-09-09 23:17:30 +02:00
test -z ${profile} || cp conf/${profile}.json ${dir_build}/conf.json