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

Contenu supprimé Contenu ajouté
Mise à jour de l'entête
→‎Annex.sh : Mise à jour des corrections
Ligne 35 :
. gettext.sh
 
VERSION=210819210822
if [ "$1" = "--v" ]; then echo "Annex version $VERSION"; exit 0; echo; fi
 
ADD_APPENDIX=$HOME/Add_appendix
export PATH=$PATH:$ADD_APPENDIX/bin
export TEXTDOMAINDIR=$ADD_APPENDIX/share/locale
 
#P If first param is empty print the syntax and exit
Ligne 240 ⟶ 242 :
#P If option -pc is validated, running sclipco.sh
if [ "$Personalco" == "true" ]
then
if [ "$Verbose" == "true" ]; then $Bindir/sclipcoadd_sclipco $1; else $Bindir/sclipcoadd_sclipco $1 > $Workdir/temp/Report-silent-mode/sclipcoadd_sclipco-cmd.txt; fi;
echo "$(gettext ' sclipco has been executed ')";
fi
Ligne 254 ⟶ 256 :
#P If option -pb is validated, running sclipw
if [ "$Personalwb" == "true" ]
then
if [ "$Verbose" == "true" ]; then $Bindir/sclipwb.incadd_sclipwb $1; else $Bindir/sclipwb.incadd_sclipwb $1 > $Workdir/temp/Report-silent-mode/scliwbadd_scliwb-cmd.txt; fi;
echo "$(gettext ' sclipwb has been executed ')";
fi
Ligne 269 ⟶ 271 :
cat $1.sclt > $1.appendix
 
#P ? sclip.inc ...?
# if [ $PersonalPersonalwb == "true" ]
# then cat $Projectdir/$1.sclipsclipwb >> $Projectdir/$1.appendix; echo "$(gettext ' $1.sclipsclipwb is added to $1.appendix ')";
elif [ $Personalco = "true" ]
# else
# then cat $Projectdir/$1.sclicsclipco >> $Projectdir/$1.appendix; echo "$(gettext ' $1.sclicsclipco is copiedadded to $1.appendix ')";
# fielse
cat $Projectdir/$1.sclic >> $Projectdir/$1.appendix; echo "$(gettext ' $1.sclic is added to $1.appendix ')";
# elsefi
 
echo "$(gettext '== License == ')" >> $Projectdir/$1.appendix
cat $Projectdir/$1/$1.license >> $Projectdir/$1.appendix
echo "" >> $Projectdir/$1.appendix
#P echo "{{Nouvelle page imprimée}}" >> $Projectdir/$1.appendix
#P echo "$(gettext '{{Page-break/end}} ')"" on en:wikibooks >> $Projectdir/$1.appendix
echo "$(gettext ' <br style=\"page-break-after: always\"> ')" >> $Projectdir/$1.appendix
echo ""