Avoid code duplication in generate.sh


Move set_paths() function up, which allows to use it to sanitize
the input parameters not only in the run_all() mode, but also
in all other modes.

Change-Id: I3e484f4ca5e91ddf938996a020901fb91cd99c81
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commit200ad1493d128bf4e17368b62b83289780d79beb
parent55f247d11137b7526c7d4e8e33a37cba4d9fee08
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeTue, 5 Aug 2025 15:15:52 +0200