git.schokokeks.org
Repositories
Help
Report an Issue
wirc-backend.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
ec28c99
Branches
Tags
master
wirc-backend.git
tools
build
[mod] tools:build
Christian Fraß
commited
ec28c99
at 2021-11-19 13:03:05
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 echo ">> no profile given; not placing configuration file" # do nothing else echo ">> placing configuration for profile '${profile}' …" cp -ru ${dir_conf}/${profile}.json ${dir_build}/conf.json fi