From 0bdd70fc94ca425d86fb4878253c69e9b5958e3a Mon Sep 17 00:00:00 2001 From: rhatto Date: Tue, 27 Jan 2009 15:48:54 +0000 Subject: mkbuild: fixing DIST download git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@780 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/mkbuild | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'trunk/src/mkbuild') diff --git a/trunk/src/mkbuild b/trunk/src/mkbuild index 45c99fe..03aa080 100755 --- a/trunk/src/mkbuild +++ b/trunk/src/mkbuild @@ -1141,7 +1141,7 @@ function get_file { 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 @@ -1150,7 +1150,7 @@ function get_file { 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 @@ -1176,7 +1176,7 @@ function get_dist_file { # usage: get_dist_file [file_name] DIST_SRC_LOCATION="" - get_file dist $URL + get_file dist $DIST_SRC_URL DIST_SRC_LOCATION="$DOWNLOADED_FILE_LOCATION" } @@ -1349,9 +1349,12 @@ function get_mkbuild_values { [ -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.*" -- cgit v1.2.3