correction for build script

This commit is contained in:
Robin Müller 2021-08-02 20:23:16 +02:00
parent 7a293b459f
commit dff8df9291
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -1,17 +1,18 @@
#!/bin/sh
counter=0
cfg_script_name="cmake-build-cfg.py"
while [ ${counter} -lt 5 ]
do
if [ -f "cmake_build_config.py" ];then
break
fi
counter=$((counter=counter + 1))
cd ..
if [ -f ${cfg_script_name} ];then
break
fi
counter=$((counter=counter + 1))
cd ..
done
if [ "${counter}" -ge 5 ];then
echo "create_cmake_cfg.sh not found in upper directories!"
exit 1
echo "${cfg_script_name} not found in upper directories!"
exit 1
fi
build_generator=""