git.schokokeks.org
Repositories
Help
Report an Issue
wirc-backend.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
a277bab
Branches
Tags
master
wirc-backend.git
tools
build
[mod] logging [mod] code structure [mod] use hashed IP address as username
Christian Fraß
commited
a277bab
at 2021-11-19 10:18:07
build
Blame
History
Raw
#!/usr/bin/env sh ## consts dir_build="build" dir_conf="conf" ## args if [ $# -ge 1 ] ; then profile=$1 ; else profile="example" ; fi ## exec echo ">> building …" make -f tools/makefile if $(test ${profile} = '-') then # do nothing echo ">> no profile given; not placing configuration file" else echo ">> placing configuration for profile '${profile}' …" cp -ru ${dir_conf}/${profile}.json ${dir_build}/conf.json fi