add over boilerplate deployment script
This commit is contained in:
parent
20393b74ff
commit
9565fdcee6
3 changed files with 45 additions and 0 deletions
14
deploy-template.sh
Executable file
14
deploy-template.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#! /bin/zsh
|
||||
# encoding: utf-8
|
||||
|
||||
if [[ -a ".over_inhibit_deployment" ]]; then
|
||||
echo '!! deployment inhibited by lock file (hint: run this from the target directory, not the over directory)'
|
||||
elif [[ -n "$1" ]]; then
|
||||
OVER_DIR="$(readlink -f "$(dirname "$0")")"
|
||||
ln -s "$OVER_DIR"
|
||||
cp "$OVER_DIR/template.py" "$1"
|
||||
chmod +x "$1"
|
||||
echo "over" >> .gitignore
|
||||
else
|
||||
echo '!! Missing argument (program name).'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue