#!/bin/sh
################################################################################
# Projet    : PMWS
# Programme : users.sh
# Création  : 15.10.2010
# Révision  :
# Objet     : création pour tous les clients du fichier de définition des
#             utilisateurs du CMS au format XML
################################################################################

# configuration ################################################################
  PHP=/usr/bin/php

################################################################################
  for dir in ../client/* ; do
    if [ -d $dir ] ; then
      client_id=`basename $dir`

      xml_fn=../client/$client_id/users.xml.php

      if [ -f $xml_fn ] ; then
        echo "$client_id : le fichier users.xml.php existe déjà"
      else
        echo "$client_id : le fichier users.xml.php n'existe pas encore"

        $PHP users_php2xml.php $client_id
      fi

      echo
    fi
  done

# vim:encoding=utf-8
# vim:guifont=Courier\ 9
