From d9aa8945a80cfd66e6b782cbc2f4e7eb48aee53e Mon Sep 17 00:00:00 2001 From: Braiden Vasco Date: Mon, 25 Sep 2017 20:27:19 +0000 Subject: [PATCH] Remove dependency checks --- README.md | 3 --- depends | 10 ---------- run | 32 -------------------------------- 3 files changed, 45 deletions(-) delete mode 100644 depends diff --git a/README.md b/README.md index 7aa50ae..aad4d32 100644 --- a/README.md +++ b/README.md @@ -29,9 +29,6 @@ apt-get install bash quilt parted qemu-user-static debootstrap zerofree \ dosfstools libcap2-bin grep rsync ``` -The file `depends` contains a list of tools needed. The format of this -file is `[:]`. - Build diff --git a/depends b/depends deleted file mode 100644 index c6c5bb2..0000000 --- a/depends +++ /dev/null @@ -1,10 +0,0 @@ -bash -quilt -parted -qemu-debootstrap:qemu-user-static -debootstrap -zerofree -mkdosfs:dosfstools -capsh:libcap2-bin -grep -rsync diff --git a/run b/run index 1a281a0..c26b55a 100755 --- a/run +++ b/run @@ -17,38 +17,6 @@ export IMG_DATE="$(date +%Y-%m-%d)" export IMG_FILE="$DEPLOY_DIR/$IMG_NAME-${IMG_DATE}.img" -# dependencies_check -# $@ Dependnecy files to check -# -# Each dependency is in the form of a tool to test for, optionally followed by -# a : and the name of a package if the package on a Debian-ish system is not -# named for the tool (i.e., qemu-user-static). -dependencies_check() { - local missing - - if [[ -f "$1" ]]; then - for dep in $(cat "$1"); do - if ! hash ${dep%:*} 2>/dev/null; then - missing="${missing:+$missing }${dep#*:}" - fi - done - fi - - if [[ "$missing" ]]; then - tput setaf 1 # Red color - echo 'Reqired dependencies not installed.' - echo 'This can be resolved on Debian/Raspbian systems by installing the following packages:' - for package_name in $missing; do - echo " * $package_name" - done - tput sgr0 # No color - - false - fi -} - -dependencies_check "$BASE_DIR/depends" - cd "$BASE_DIR" mkdir -p "$DEPLOY_DIR"