This new stage does the work to prepare the Dist-Git repository to commit the update. It does not actually upload sources or commit to the repo, but it does simplify the process to actually prepare for doing that.
rebased onto 0879cf5d3e3aa1227536ee66391a7ed62f2741e9
rebased onto 3239a2ddd607b1486ec0d11a61b5bad153748983
Shouldn't the new option be optional since it's also only used with releases?
@jvreeland it is, it gets skipped entirely if releases aren't happening.
rebased onto 73e031c5842d6f7365ac3b0d523c9fd4a1ebb8c0
rebased onto 9432169952078fab93e4d90dbf2f7b9979fac29f
Pull-Request has been merged by ngompa
You check if it's set at the beginning of the script then exit if it's not. The usage notation also doesn't indicate that it's optional. From my understanding this command should still work since it's not a release and there's no need for the pkgdir option.
$ ./kernel-rebase.sh --kernel-srcdir=/var/tmp/work Options not set! usage: kernel-rebase.sh --kernel-srcdir=DIR --kernel-pkgdir=DIR [--only-stage=STAGE] [--release-build] [--debug] eg: kernel-rebase.sh --kernel-srcdir=/var/tmp/work --kernel-pkgdir=/var/tmp/pkgwork --only-stage=prep --debug eg: kernel-rebase.sh --kernel-srcdir=/var/tmp/work --kernel-pkgdir=/var/tmp/pkgwork --only-stage=prep eg: kernel-rebase.sh --kernel-srcdir=/var/tmp/work --kernel-pkgdir=/var/tmp/pkgwork --release-build eg: kernel-rebase.sh --kernel-srcdir=/var/tmp/work --kernel-pkgdir=/var/tmp/pkgwork
This new stage does the work to prepare the Dist-Git repository to commit
the update. It does not actually upload sources or commit to the repo,
but it does simplify the process to actually prepare for doing that.