Insthidge/copier-run.sh

22 lines
448 B
Bash
Executable file

#!/usr/bin/bash
PKG_NAME="Insthidge"
DST_DIR="slidge-insthidge"
SRC_URL="https://codeberg.org/slidge/legacy-module-template.git"
mkdir -p $DST_DIR
# Run Copier
cp .copier-answers.yml $DST_DIR
pipx run copier copy -w -l $SRC_URL $DST_DIR
# Replace generated environment with work tree
rm -r $DST_DIR/$PKG_NAME
ln -s $PWD/$PKG_NAME $DST_DIR/$PKG_NAME
mkdir -p persistent
ln -s $PWD/persistent $DST_DIR/persistent
pushd $DST_DIR
git init .
popd