#!/bin/bash
source /Data2/CLIENT/programme/variable #on appel le fiichier ou sont les REP=`pwd`
source ../../programme/Variable
REP=`pwd`
nom_star=`expr $PWD : '.*/\(.*\)' '|' $PWD;` #on retrouve le nom dde la star
echo $nom_star
mkdir /Data2/CLIENT/STAR_numero1/$rep_star
for Photo_ect in $(find . -type d | ls); do
if [ "$Photo_ect" != "Attente" ]; then
if [ "$Photo_ect" = "Couvertures_Autographes" ] || [ "$Photo_ect" = "Manifestations_Culturelles" ] || [ "$Photo_ect" = "Poses" ]; then
coupe_nom_convert
fi
if [ "$Photo_ect" = "Manifestations_Culturelles_Annees" ]; then
premier=MCA
coupe_nom
total=_"$premier""$quatrieme"
coupe_nom_convert_annees
# /Data2/CLIENT/programme/renomme_manifestations_culturelles_annee.sh
fi
fi
done