Skip to content

Commit

Permalink
add --delete --utm incomplete boilerplate implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed May 24, 2022
1 parent 5fc5656 commit 2fdcce7
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions derivative-maker
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ dist_build_clean() {
cleaned_up="true"
./help-steps/delete-qcow
fi
if [ "$dist_build_utm" = "true" ]; then
cleaned_up="true"
./help-steps/delete-utm
fi
if [ "$dist_build_install_to_root" = "1" ]; then
error "${red}${bold}For --flavor root builds, --clean is not implemented.${reset}"
fi
Expand Down
25 changes: 25 additions & 0 deletions help-steps/delete-utm
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

## Copyright (C) 2012 - 2022 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

set -x
set -e

true "INFO: Currently running script: $BASH_SOURCE $@"

MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

source "$MYDIR/pre"
source "$MYDIR/colors"
source "$MYDIR/variables"

main() {
error "--delete --target utm is not implemented."

exit 1

sync
}

main "$@"
4 changes: 3 additions & 1 deletion help-steps/parse-cmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## See the file COPYING for copying conditions.

parse_cmd_target_error() {
echo "${red}${bold}ERROR: --target must be either virtualbox, qcow2, iso, raw or root and can be used multiple times.${reset}"
echo "${red}${bold}ERROR: --target must be either virtualbox, qcow2, utm, iso, raw or root and can be used multiple times.${reset}"
exit 1
}

Expand Down Expand Up @@ -739,6 +739,8 @@ Defaulting dist_build_sources_clearnet_or_onion to ${under}clearnet${eunder}.
true
elif [ "$dist_build_qcow2" = "true" ]; then
true
elif [ "$dist_build_utm" = "true" ]; then
true
elif [ "$dist_build_raw" = "true" ]; then
true
elif [ "$dist_build_iso" = "true" ]; then
Expand Down

0 comments on commit 2fdcce7

Please sign in to comment.