« Auto-éditer un wikilivre/Annexer (Version internationalisée)/src/add sclt.sh » : différence entre les versions

Contenu supprimé Contenu ajouté
m →‎en_sclt.inc : Mise à jour version 210614
m →‎fr_sclt.inc : Mise à jour version 210614
Ligne 81 :
<syntaxhighlight lang="bash">
#! /bin/bash
#H Fichier : fr_sclt.inc pour ajouterinclure àdans add_sclt.sh
#H Version du 10 juin 2021210614
cd $Projectdir
#T echo "Projectdir : $Projectdir" exit 0
Ligne 209 :
if wget --spider https://xtools.wmflabs.org/articleinfo/en.wikibooks.org/$ligne 2>/dev/null
then
echo ". éditer : https://xtools.wmflabs.org/articleinfo/en.wikibooks.org/$ligne" >> $Projectdir/$ligne/$ligne.auteur
elif wget --spider https://xtools.wmflabs.org/articleinfo/en.wikibooks.org/$Bookname/$ligne 2>/dev/null
then
echo ". éditer : https://xtools.wmflabs.org/articleinfo/en.wikibooks.org/$Bookname/$ligne" >> $Projectdir/$ligne/$ligne.auteur
else echo ". éditer ''contributeurs'' du livre ''$Bookname'' historique de la page ''$ligne''" >> $Projectdir/$ligne/$ligne.auteur
fi
fi