14 lines
404 B
Bash
Executable file
14 lines
404 B
Bash
Executable file
#! /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
|