Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Commit

Permalink
androdeb: Remove 'buildtar' and prepare checks.
Browse files Browse the repository at this point in the history
- buildtar is not needed, since we have "prepare --buildtar" already
- prepare can be specified without any options since all packages will
  be installed if prepare wasn't specified anything. So IOW, its
  perfectly legal to do: "androdeb prepare"

Signed-off-by: Joel Fernandes (Google) <[email protected]>
  • Loading branch information
joelagnel committed May 29, 2018
1 parent 10d36a8 commit b42fa75
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions androdeb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ config_full_build() {
if [ $# -lt 1 ]; then usage; fi; POSITIONAL=()
while [[ $# -gt 0 ]]; do key="$1";
case $key in
prepare) PREPARE=1; shift || true; ;;
prepare) PREPARE=1; shift || true; ;;
shell) ASHELL=1; shift || true; ;;
remove) REMOVE=1; shift || true; ;;
pull) PULL=1; shift || true; ;;
buildtar) PREPARE=1; TARDIR="./"; config_full_build; shift || true; ;;
--arch) ARCH=$2; shift || true; shift || true; ;;
--archive) TARF=$2; shift || true; shift || true; ;;
--tracers) source $spath/packages/tracers; shift || true; ;;
Expand Down Expand Up @@ -63,15 +62,10 @@ if [ ! -z "$PULL" ]; then
fi

if [ -z "$PACKAGES" ]; then
echo "No packages specified, so I'm going to do a --fullbuild"
echo "No packages specified, so I'm going to build/install all packages (--fullbuild)"
config_full_build
fi

if [ ! -z "$PREPARE" ] && [ -z "$DOWNLOAD" ] && [ -z "$TARF" ] &&
[ -z "$KERNELSRC" ] && [ -z "$KERNELHDRS" ] &&
[ -z "$BUILD_IMAGE" ]; then
echo "Need to specifify something to prepare, or try: ./andrdeb prepare --download"; usage; fi

if [[ ! -z ${TARDIR+x} ]] && [[ ! -d $TARDIR ]]; then die 7 "Tar dir specified doesn't exist"; fi

if [ -z "$BUILD_IMAGE" ]; then
Expand Down

0 comments on commit b42fa75

Please sign in to comment.