diff options
Diffstat (limited to 'install_prereq')
-rwxr-xr-x | install_prereq | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/install_prereq b/install_prereq index dac0189..aadc77f 100755 --- a/install_prereq +++ b/install_prereq @@ -14,17 +14,22 @@ usage() { echo "Usage: $0 install Really install." } -PACKAGES_DEBIAN="build-essential libnewt-dev libusb-dev" +PACKAGES_DEBIAN="build-essential libnewt-dev libusb-dev modemp3d" PACKAGES_RH="gcc newt-devel libusb-devel" KVERS=`uname -r` case "$1" in -test) testcmd=echo ;; +test) testcmd=test_cmd ;; install) testcmd='' ;; '') usage; exit 0 ;; *) usage; exit 1 ;; esac +NOTHING_TO_INSTALL=true +test_cmd() { + NOTHING_TO_INSTALL=false + echo "$@" +} # Fixme: should be done by apt and not by dpkg? check_installed_debs() { @@ -111,8 +116,14 @@ elif [ -r /etc/redhat-release ]; then fi echo "#############################################" -echo "## $1 completed successfully" if in_test_mode; then - echo "## (in test mode)" + if $NOTHING_TO_INSTALL; then + echo "## $1 completed successfully ((In test mode) " + else + echo "## $1: some extra packages are needed to build zaptel" + exit 1 + fi +else + echo "## $1 completed successfully" fi echo "#############################################" |