#!/bin/bash
-vv_dir=$(dirname $(readlink -e $(which $0)))
+temp=$(which "$0")
+temp=$(readlink -e "${temp}")
+vv_dir=$(dirname "${temp}")
echo clitk3 directory: $vv_dir
-cd ${vv_dir}/build
+cd "${vv_dir}/build"
function handle_exit
#!/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