#!/bin/bash # Copyright (C) 2007 Michael Homer <=mwh> # Distributed under the GNU GPLv3+ without warranty of any kind. # Outputs the URL(s) for the recipe given on the command line # Example: rurl Mesa|xargs wget -P /Files/Compile/Archives [[ 0 == $EUID ]] || sudo=sudo . GoboPath prog=$1 version=$2 recipe=$($sudo GetRecipe $prog $version 2>/dev/null) source $goboSystem/Settings/Compile/Compile.conf source $recipe/Recipe [ "$url" ] && echo $url || for url in "${urls[@]}" ; do echo $url; done