freie_systeme/tools/deploy
2025-11-12 15:43:49 +01:00

30 lines
334 B
Bash
Executable file

#!/usr/bin/env bash
## functions
function syntaxerror
{
echo "SYNTAX: deploy <target-definition>" > /dev/stderr
}
## const
dir_build="build"
## args
if [ $# -ge 1 ] ; then target_definition=$1 && shift ; else syntaxerror ; fi
## exec
rsync \
--update \
--recursive \
--verbose \
${dir_build}/ \
${target_definition}