-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mklive.sh: start using lib.sh functions. #322
base: master
Are you sure you want to change the base?
Conversation
6d3f6f2
to
6348169
Compare
- add more tools to REQTOOLS - small change to bailout to be appropriate for both unchecked exceptions and errors - remove CURRENT_STEP and STEP_COUNT, no longer used - small changes in the builddir check suggested by shellcheck.
No longer [wip], as I am no longer going to work on it - I have completed the changes I set out to make. I will hapilly justify my changes and fix what is suggested if it relates to them. |
XBPS_REPOSITORY="$XBPS_REPOSITORY --repository=https://repo-default.voidlinux.org/current --repository=https://repo-default.voidlinux.org/current/musl" | ||
|
||
# mklive only supports x86_64 and i686 with glibc or musl, abort on other archs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if this comment is really needed, I think the code is pretty clear about this.
@@ -316,8 +301,13 @@ while getopts "a:b:r:c:C:T:Kk:l:i:I:S:s:o:p:v:h" opt; do | |||
esac | |||
done | |||
shift $((OPTIND - 1)) | |||
|
|||
# Check for the existance of required executables in the host system. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also I think that the check_tools name already tells people what it does
umount_pseudofs | ||
[ -d "$BUILDDIR" -a -z "$KEEP_BUILDDIR" ] && rm -rf "$BUILDDIR" | ||
exit "${1:=0}" | ||
# This source pulls in all the functions from lib.sh. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as below, I don't think this is necessary to document
@paper42 Thank you for taking the time to review this PR. |
why remove die/error_out and add bailout? there's a die() in lib.sh. and why no longer use print_step? IMO if we start putting => in front of info_msgs that should go into the function so it's uniform everywhere I agree with paper on the comments, most of them are made totally redundant by reading the code. leave comments for complex or nonobvious code |
die() from lib.sh will remove $ROOTFS allways.
I can add more substantive comments (and more verbose) if that is the goal. I was prompted to add something due to the work that has been done in other scripts years ago by @the-maldridge ... Granted, my changes are much less extensive - the bare minimum to have lib.sh functions in mklive and have some consistency with other scripts. |
No description provided.