From bbab190fa5ecc5f04722bcb2d12f2578300a1d9c Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 27 Mar 2011 21:40:54 +0000 Subject: Updated to 0.14 --- qemu-kvm/build/qemu-kvm.SlackBuild | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'qemu-kvm') diff --git a/qemu-kvm/build/qemu-kvm.SlackBuild b/qemu-kvm/build/qemu-kvm.SlackBuild index 85d6c485..c31ae5d3 100755 --- a/qemu-kvm/build/qemu-kvm.SlackBuild +++ b/qemu-kvm/build/qemu-kvm.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright (c) 2010 Eric Hameleers, Eindhoven, NL +# Copyright 2010, 2011 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -32,6 +32,8 @@ # Changelog: # 0.12.5-1: 23/Aug/2010 by Eric Hameleers # * Initial build. +# 0.14-1: 28/mar/2011 by Eric Hameleers +# * Update. # # Run 'sh qemu-kvm.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -42,7 +44,7 @@ # Set initial variables: PRGNAM=qemu-kvm -VERSION=${VERSION:-0.12.5} +VERSION=${VERSION:-0.14} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -109,10 +111,11 @@ rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log # Source file availability: if ! [ -f ${SOURCE} ]; then + echo "Source '$(basename ${SOURCE})' not available yet..." + # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT + [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" + if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi if ! [ "x${SRCURL}" == "x" ]; then - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - echo "Source '$(basename ${SOURCE})' not available yet..." echo "Will download file to $(dirname $SOURCE)" wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then -- cgit v1.2.3-79-gdb01