Clean up the generate.sh


 - remove duplicated if/elif logic appeared after incorrect git merge
 - replace all 'exit 1' to the die() usage
 - put the block related to the SERVER_NAME setting into the set_paths()
 - do not set SERVER_NAME in run_all(), because set_paths() handles it
 - move killServer call after function declaration
 - delete outdated todo block

Change-Id: I1d4c89b2142db6d6a5bdaefe3ba2138b443b5b70
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commita4a06d2853667b939c60af065924989b85178a91
parent48847d09e464f1701c08cb6312d342ea60ebe421
authorTatiana Borisova <tatiana.borisova@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeFri, 22 Aug 2025 10:57:17 +0200