2024-06-21 14:04:58 +02:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
## args
|
|
|
|
|
|
|
|
if [ $# -ge 1 ] ; then dir_build=$1 && shift ; else dir_build="/tmp/mondvogel" ; fi
|
|
|
|
if [ $# -ge 1 ] ; then dir_target=$1 && shift ; else dir_target="/opt/mondvogel" ; fi
|
|
|
|
if [ $# -ge 1 ] ; then path_bin=$1 && shift ; else path_bin="/usr/local/bin/mondvogel" ; fi
|
|
|
|
|
|
|
|
|
|
|
|
## exec
|
|
|
|
|
|
|
|
mkdir --parents ${dir_target}
|
|
|
|
cp --recursive ${dir_build}/* ${dir_target}/
|
2024-06-23 11:43:45 +02:00
|
|
|
echo "#!/usr/bin/env bash" > ${path_bin}
|
|
|
|
echo "cd ${dir_target} && python3 main.py \$@" >> ${path_bin}
|
2024-06-21 14:04:58 +02:00
|
|
|
chmod +x ${path_bin}
|
|
|
|
echo "-- ${path_bin}"
|