diff options
-rwxr-xr-x | potrace/build/potrace.SlackBuild | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/potrace/build/potrace.SlackBuild b/potrace/build/potrace.SlackBuild index 44537e96..ea1dc3b0 100755 --- a/potrace/build/potrace.SlackBuild +++ b/potrace/build/potrace.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright (c) 2008, 2009, 2010 Eric Hameleers, Eindhoven, NL +# Copyright 2008, 2009, 2010, 2011 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -36,6 +36,8 @@ # * Slackware 13 packages built. # 1.8-3: 20/may/2010 by Eric Hameleers <alien@slackware.com> # * Slackware 13.1 packages built. +# 1.9-1: 28/jun/2011 by Eric Hameleers <alien@slackware.com> +# * Update. # # Run 'sh potrace.SlackBuild' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -46,8 +48,8 @@ # Set initial variables: PRGNAM=potrace -VERSION=${VERSION:-1.8} -BUILD=${BUILD:-3} +VERSION=${VERSION:-1.9} +BUILD=${BUILD:-1} TAG=${TAG:-alien} DOCS="AUTHORS COPYING ChangeLog NEWS README*" @@ -109,10 +111,11 @@ rm -rf $TMP/tmp-$PRGNAM/* # remove the remnants of previous build # 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 |