elif is_writable_folder $TMP; then
file="$TMP/`basename $file_name`"
if [ ! -e "$file" ]; then
- wget "$URL" -O "$file"
+ wget "$url" -O "$file"
if [ "$?" != "0" ]; then
echo "Could not download $file"
return 1
elif ! is_the_same /tmp $TMP; then
file="/tmp/`basename $file_name`"
if [ ! -e "$file" ]; then
- wget "$URL" -O "$file"
+ wget "$url" -O "$file"
if [ "$?" != "0" ]; then
echo "Could not download $file"
return 1
# usage: get_dist_file <url> [file_name]
DIST_SRC_LOCATION=""
- get_file dist $URL
+ get_file dist $DIST_SRC_URL
DIST_SRC_LOCATION="$DOWNLOADED_FILE_LOCATION"
}
[ -z $SOURCE_NAME ] && SOURCE_NAME=`eval "echo $CONST_STRING"`
verbose "SOURCE_NAME=\"$SOURCE_NAME\""
- # Eval source code name
+ # Eval source code name and URL
DIST_SRC_NAME="`eval "echo $CONST_STRING"`" # we need this to strip some escape strings
DIST_SRC_NAME="`eval "echo $DIST_SRC_NAME"`" # twice does the job
+ DIST_SRC_URL="`eval "echo $URL_BASE"`" # we need this to strip some escape strings
+ DIST_SRC_URL="`eval "echo $DIST_SRC_URL"`" # twice does the job
+ DIST_SRC_URL="$DIST_SRC_URL/$DIST_SRC_NAME"
# Documentations list
DEFAULT_DOCFILES="NEWS TODO README AUTHORS INSTALL ChangeLog MAINTAINERS COPYING LICENSE SIGNATURE readme.*"