X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=make_meta.sh;h=a1da280f777aa08170c0282f35464589130b37da;hb=HEAD;hp=29a496efbeb1568ba655f73ea7489781f1de16b7;hpb=931a42358442f4ee4f314613c991c838d4b4e3b7;p=clitk.git diff --git a/make_meta.sh b/make_meta.sh old mode 100755 new mode 100644 index 29a496e..a1da280 --- a/make_meta.sh +++ b/make_meta.sh @@ -1,18 +1,18 @@ #!/bin/bash #This script creates the files necessary for developement: vim tags files, doxygen documentation, ... -ROOT_DIR=$(pwd) +ROOT_DIR="$(pwd)" echo $ROOT_DIR #ROOT_DIR=${HOME}/workspace/vv -cd ${ROOT_DIR} +cd "${ROOT_DIR}" [ "$1" = "--full" ] && doxygen clitk.doxygen& -for i in $(find $(pwd) -type d | grep -v "^\.$") +find "$(pwd)" -type d | grep -v "^\.$" | while read i do - cd $i && [ -n "$(find . -maxdepth 1 -name '*.c??')" ] && + cd "$i" && [ -n "$(find . -maxdepth 1 -name '*.c??')" ] && { rm .vimrc - ln -s ${ROOT_DIR}/.vimrc . - ctags -R --languages=c,c++ --exclude=build --langmap=c++:.c++.cc.cp.cpp.cxx.h.h++.hh.hp.hpp.hxx.C.H.txx --exclude=doc --exclude=tests_jef ${ROOT_DIR} & + ln -s "${ROOT_DIR}/.vimrc" . + ctags -R --languages=c,c++ --exclude=build --langmap=c++:.c++.cc.cp.cpp.cxx.h.h++.hh.hp.hpp.hxx.C.H.txx --exclude=doc --exclude=tests_jef "${ROOT_DIR}" & } done wait