Différences entre les versions de « Auto-éditer un wikilivre/Annexer (Version internationalisée)/cp-src2bin.sh »

Aller à la navigation Aller à la recherche
m
Révision
(Re-copie du fichier source)
m (Révision)
; {{rouge|WARNING, this is an old version revised on Sep 18, 2021}}
; Install this executable shell code in sbin ( /usr/local/sbin | ~/Add_appendix/sbin | ~/Annexer/sbin )
; Installer ce code shell éxécutable dans sbin
VERSION=210419
 
if [ "$1" = "--v" ]; then echo "cp-src2bin.sh : VERSION $VERSION rrevised on Sep 18, 2021"; exit 0; fi
 
#P Find the current directory
pwd > pwd.txt
read Currentdir < pwd.txt
 
#P Find the working name directory
cat pwd.txt | cut -d "/" -f4 > workname.txt
read Workname < workname.txt
echo -n "Working name directory= $Workname"
if [ $Workname = "Annexer" ] || [ $Workname = "Add_appendix" ]
#P Find full directories install, working etc.
source ~/$Workname/datasvars/installdir.var
echo "Install directory : $Installdir"
echo "Working dir : $Workdir"
 
echo "Bin dir : $Bindir"
echo "Lib dir : $Libdir"
echo "Sbindir : $Sbindir"
#T Test break exit 0
 
#P Make list files.pj
echo "Make files list from src directory in files.pj"
ls -1 $Installdir/src/*.sh > files.pj
 
#P If files.pj is not empty copy all files *.sh to executable directory
if [ -s "files.pj" ];
then
echo "files in files.pj :"
 
#P Copy copy without extension .sh, and make files executables
echo "#####################################################################"
echo "# Warning: this script move all src/*.sh to bin/* without comments. #"
echo "# Warning: is not available to product POT files for translations. #"
echo "#####################################################################"
while read line
do

Menu de navigation