add install & TOC script, BD illus models

This commit is contained in:
Tykayn 2024-09-08 18:16:16 +02:00 committed by tykayn
parent f4cea3ac08
commit caee997e01
56 changed files with 2418 additions and 4 deletions

View file

@ -0,0 +1,23 @@
#!/bin/bash
# crée un nouveau fichier d'illustration à partir d'un modèle
if [ -z "$1" ]; then
echo "Erreur : Veuillez spécifier un nom pour le fichier d'illustration." >&2
exit 1
fi
extension="kra"
# choix du modèle de base
if [ "$2" ]; then
extension=$2
fi
nom_illustration=$1
dossier_illustrations="illustrations"
echo "création du dossier d'illustrations: $nom_illustration"
mkdir -p $dossier_illustrations
cp _models/base_dessin.$extension "$dossier_illustrations/$nom_illustration"
ls -l $dossier_illustrations
echo "fichier d'illustration $livre_bidule créé"
exit 0