exclude non-tracked files in swig check
@@ -20,6 +20,8 @@ t1_swig_cwrap=`git log --pretty=format:%ct -n 1 ../pyccl/ccl_wrap.c`
for hdr in `ls ../include/*.h ../class/include/*.h ../pyccl/*.i`;
do
last_commit=`git log --pretty=format:%ct -n 1 $hdr`
+ if [ ! -z "$last_commit" ];
+ then
if [ "$last_commit" -gt "$t1_swig_pylib" ] || [ "$last_commit" -gt "$t1_swig_cwrap" ];
then
echo $msg1
@@ -28,6 +30,7 @@ do
echo $swig_command
exit 1
fi
+ fi
done
# If everything was up to date, tell the user
