Rename 'img' command to 'image'
Additionally, remove the "all" command Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
bba27fbe4a
commit
eb6693901d
@ -23,7 +23,7 @@ usage ()
|
|||||||
echo " commands:"
|
echo " commands:"
|
||||||
echo " install <working dir> : install packages to the working dir"
|
echo " install <working dir> : install packages to the working dir"
|
||||||
echo " squash <working dir> <sqfs name> : generate a squashfs image of the working dir"
|
echo " squash <working dir> <sqfs name> : generate a squashfs image of the working dir"
|
||||||
echo " img <working dir> <image name> : build an image from the working dir"
|
echo " image <working dir> <image name> : build an image from the working dir"
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ imgname=""
|
|||||||
case "${command_name}" in
|
case "${command_name}" in
|
||||||
install) work_dir="${2}"; imgname="none" ;;
|
install) work_dir="${2}"; imgname="none" ;;
|
||||||
squash) work_dir="${2}"; imgname="${3}" ;;
|
squash) work_dir="${2}"; imgname="${3}" ;;
|
||||||
img) work_dir="${2}"; imgname="${3}" ;;
|
image) work_dir="${2}"; imgname="${3}" ;;
|
||||||
*) echo "invalid command name '${command_name}'"; usage 1 ;;
|
*) echo "invalid command name '${command_name}'"; usage 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ command_squash () {
|
|||||||
echo "Image creation done in $minutes minutes."
|
echo "Image creation done in $minutes minutes."
|
||||||
}
|
}
|
||||||
|
|
||||||
command_img () {
|
command_image () {
|
||||||
echo "====> Making bootable image"
|
echo "====> Making bootable image"
|
||||||
if [ -e "${imgname}" ]; then
|
if [ -e "${imgname}" ]; then
|
||||||
if [ "${FORCE}" = "y" ]; then
|
if [ "${FORCE}" = "y" ]; then
|
||||||
@ -245,14 +245,14 @@ command_img () {
|
|||||||
|
|
||||||
# Go through the main commands in order. If 'all' was specified, then we want
|
# Go through the main commands in order. If 'all' was specified, then we want
|
||||||
# to do everything. Start with 'install'.
|
# to do everything. Start with 'install'.
|
||||||
if [ "${command_name}" = "install" -o "${command_name}" = "all" ]; then
|
if [ "${command_name}" = "install" ]; then
|
||||||
command_install
|
command_install
|
||||||
fi
|
fi
|
||||||
if [ "${command_name}" = "squash" -o "${command_name}" = "all" ]; then
|
if [ "${command_name}" = "squash" ]; then
|
||||||
command_squash
|
command_squash
|
||||||
fi
|
fi
|
||||||
if [ "${command_name}" = "img" -o "${command_name}" = "all" ]; then
|
if [ "${command_name}" = "image" ]; then
|
||||||
command_img
|
command_image
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# vim:ts=4:sw=4:et:
|
# vim:ts=4:sw=4:et:
|
||||||
|
Loading…
Reference in New Issue
Block a user