Make use of the templated development environment without including it on te repo

This commit is contained in:
Oliver Hattshire 2025-10-24 16:58:01 -03:00
parent c0cf0bc40c
commit 1248630272
3 changed files with 77 additions and 1 deletions

22
copier-run.sh Executable file
View file

@ -0,0 +1,22 @@
#!/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