From e896223756e29639e60c1a43f380ad05cc03410b Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Thu, 2 Nov 2017 14:36:43 +0000 Subject: [PATCH] travis attempt 2 --- configure | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 4076626..d42a377 100755 --- a/configure +++ b/configure @@ -1,18 +1,20 @@ #!/usr/bin/env bash +s='sudo' y='' while getopts t OPT; do case "$OPT" in t) + s='' y='-y' ;; esac done shift $(($OPTIND - 1)) -sudo apt-get update $y +$s apt-get update $y # Building SDL for QEMU in Buildroot was rejected upstream because it adds many dependencies: # https://patchwork.ozlabs.org/patch/770684/ # We are just using the host SDL for now, if it causes too much problems we might remove it. # libsdl2-dev needs to be installed separatedly from sudo apt-get build-dep qemu # because Ubuntu 16.04's QEMU uses SDL 1. -sudo apt-get install $y build-essential libsdl2-dev -sudo apt-get build-dep $y qemu +$s apt-get install $y build-essential libsdl2-dev +$s apt-get build-dep $y qemu