8 echo " SA_new_cpp_component Name"
10 echo " -> create the tree to compile a new C++ component linked with MED libs"
17 # Rename the first directory containing $oldName in their file name
18 liste=`find . -type d -name "*${oldName}*"`
21 newFile=`echo $file | sed "s/${oldName}/${newName}/g"`
22 echo "mv -f $file $newFile"
34 tar xvfz ${HXX2SALOME_ROOT_DIR}/cpp_compo_template.tgz
35 moduleName=${1}CPP_SRC
36 mv Cpp_Template__SRC ${moduleName}
44 echo Renamed Directories:
47 # rename directories one by one
54 # rename files containing ${oldName} in their name
58 liste=`find . -name "*${oldName}*"`
61 newFile=`echo $file | sed "s/${oldName}/${newName}/g"`
62 echo "mv -f $file $newFile"
69 # modify all files containing $oldName, replace occurences by $newName
70 liste=`find -name "*"`
75 grep $oldName $file > /dev/null 2>&1
79 cat $file | sed "s/${oldName}/${newName}/g" > fic_temp_${today}
80 cp -f fic_temp_${today} $file
84 rm -f fic_temp_${today}