[PATCH v4 02/13] scripts: port make-gpt.sh to bash