X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fappli%2FbbCreateBlackBox%2FbbCreateBlackBox.sh.in;h=54ebc364a191f091f79f1d7fcf5280e4f2f038ba;hb=d2b20f96a780fa2441c9e1412860394f653e37b6;hp=332f0387174d95b934dd35be57f030e567b41c41;hpb=174355911252cb3817305ef368acd995a02ab245;p=bbtk.git diff --git a/kernel/appli/bbCreateBlackBox/bbCreateBlackBox.sh.in b/kernel/appli/bbCreateBlackBox/bbCreateBlackBox.sh.in index 332f038..54ebc36 100644 --- a/kernel/appli/bbCreateBlackBox/bbCreateBlackBox.sh.in +++ b/kernel/appli/bbCreateBlackBox/bbCreateBlackBox.sh.in @@ -1,3 +1,28 @@ +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la SantÈ) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# The fact that you are presently reading this means that you have had +# knowledge of the CeCILL-B license and that you accept its terms. +# ------------------------------------------------------------------------ */ + #!/bin/bash # creates the file architecture for a new user package @@ -40,6 +65,7 @@ echo "author = " $AUTHOR echo "description = " $DESCRIPTION echo "category = " $CATEGORY echo "type = " $TYPE +echo "format = " $FORMAT echo "input = " $INPUT @@ -55,7 +81,7 @@ echo " - Creating ${FILENAME}.xml" sed s,__BLACKBOXNAME__,"${BOX}", < ${INPUT} | sed s/__AUTHOR__/"${AUTHOR}"/ | sed s{__DESCRIPTION__{"${DESCRIPTION}"{ | sed s/__CATEGORY__/"${CATEGORY}"/ > ${OUTPUT_DIR}/${FILENAME}.xml -if [ ${FORMAT}="C++" ] +if [ "${FORMAT}" = "C++" ] then if [ -f ${OUTPUT_DIR}/${FILENAME}.h ] then @@ -68,5 +94,5 @@ if [ ${FORMAT}="C++" ] rm ${OUTPUT_DIR}/${FILENAME}.xml fi -echo "Done !" +echo "Black box created !"