Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zmap
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zmap
Commits
3969065f
Commit
3969065f
authored
17 years ago
by
rds
Browse files
Options
Downloads
Patches
Plain Diff
configurable wget or curl
parent
9d6d9905
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gtk/build.sh
+1
-1
1 addition, 1 deletion
gtk/build.sh
gtk/build_config.sh
+3
-1
3 additions, 1 deletion
gtk/build_config.sh
gtk/build_functions.sh
+88
-8
88 additions, 8 deletions
gtk/build_functions.sh
with
92 additions
and
10 deletions
gtk/build.sh
+
1
−
1
View file @
3969065f
...
...
@@ -60,7 +60,7 @@ build_message_out "The GTK+ site has this README with regards to dependencies"
build_message_out
""
build_message_out
""
$WGET
-q
-O
-
$PACKAGE_gtk_URL
/dependencies/README
build_download_file
$PACKAGE_gtk_URL
/dependencies/README
"-"
build_message_out
""
build_message_out
"Is everything configured?"
...
...
This diff is collapsed.
Click to expand it.
gtk/build_config.sh
+
3
−
1
View file @
3969065f
...
...
@@ -8,6 +8,7 @@ LEAVE_PREVIOUS_BUILD="yes"
CLEAN_BUILD_DIR
=
"no"
CLEAN_DIST_DIR
=
"no"
GET_ONLY
=
"no"
USE_WGET
=
"no"
SLEEP
=
15
SILENT_CD
=
yes
...
...
@@ -189,7 +190,8 @@ PACKAGE_gtk_CONFIGURE_OPTS=
# Some systems are very different when it comes to
# locations of programs. Hopefully these should help!
ECHO
=
echo
WGET
=
wget
WGET
=
"wget"
CURL
=
"curl"
RM
=
rm
GTAR
=
tar
MKDIR
=
mkdir
...
...
This diff is collapsed.
Click to expand it.
gtk/build_functions.sh
+
88
−
8
View file @
3969065f
...
...
@@ -38,7 +38,69 @@ function build_cd
cd
$1
||
build_message_exit
"Failed to cd to
$1
"
}
# Usage: build_download_file <url>
# Usage: build_curl_get_file <url> <output-file>
function
build_curl_get_file
{
if
[
"x
$1
"
!=
"x"
]
;
then
url
=
$1
proxy
=
""
outfile
=
""
clean_cmd
=
""
if
[
"x
$HTTP_PROXY
"
!=
"x"
]
;
then
proxy
=
"-x
$HTTP_PROXY
"
elif
[
"x
$http_proxy
"
!=
"x"
]
;
then
proxy
=
"-x
$http_proxy
"
fi
if
[
"x
$2
"
!=
"x"
]
;
then
if
[
"x
$2
"
!=
"x-"
]
;
then
outfile
=
"-o
$2
"
clean_cmd
=
"
$RM
-f
$2
"
fi
fi
$CURL
$proxy
$outfile
$url
if
[
$?
!=
0
]
;
then
$clean_cmd
build_message_exit
"Failed to download
$package
from
$url
"
fi
else
build_message_out
"Usage: build_curl_get_file <url> <output-file>"
fi
}
# Usage: build_wget_get_file <url> <output-file>
function
build_wget_get_file
{
if
[
"x
$1
"
!=
"x"
]
;
then
url
=
$1
if
[
"x
$2
"
!=
"x"
]
;
then
package
=
$2
clean_cmd
=
"
$RM
-f
$package
"
options
=
""
if
[
"x
$2
"
==
"x-"
]
;
then
clean_cmd
=
""
options
=
"-q"
fi
$WGET
$options
-O
$package
$url
if
[
$?
!=
0
]
;
then
$clean_cmd
build_message_exit
"Failed to download
$package
from
$url
"
fi
else
build_message_out
"Usage: build_wget_get_file <url> <output-file>"
fi
else
build_message_out
"Usage: build_wget_get_file <url> <output-file>"
fi
}
# Usage: build_download_file <url> <file>
function
build_download_file
{
restore_dir
=
$(
pwd
)
...
...
@@ -46,14 +108,30 @@ function build_download_file
if
[
"x
$1
"
!=
"x"
]
;
then
url
=
$1
package
=
$(
basename
$url
)
if
[
!
-f
$package
]
;
then
if
[
"x
$2
"
!=
"x"
]
;
then
package
=
$2
else
package
=
$(
basename
$url
)
fi
if
[
"x
$package
"
==
"x-"
]
;
then
if
[
"x
$USE_WGET
"
==
"xyes"
]
;
then
build_wget_get_file
$url
$package
else
build_curl_get_file
$url
$package
fi
elif
[
!
-f
$package
]
;
then
build_message_out
"Downloading
$package
from
$url
"
$WGET
-O
$package
$url
if
[
$?
!=
0
]
;
then
$RM
-f
$package
build_message_exit
"Failed to download
$package
"
elif
[
!
-f
$package
]
;
then
if
[
"x
$USE_WGET
"
==
"xyes"
]
;
then
build_wget_get_file
$url
$package
else
build_curl_get_file
$url
$package
fi
if
[
!
-f
$package
]
;
then
build_message_exit
"Failed to download
$package
"
else
build_message_out
"Download complete"
...
...
@@ -270,11 +348,13 @@ function build_save_execution_config
$ECHO
"SLEEP='
$SLEEP
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"SILENT_CD='
$SILENT_CD
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"USE_WGET='
$USE_WGET
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"BUILD_STATUS_FILE='
$BUILD_STATUS_FILE
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"ECHO='
$ECHO
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"WGET='
$WGET
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"CURL='
$CURL
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"RM='
$RM
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"GTAR='
$GTAR
'"
>>
$BUILD_EXECUTE_CONFIG
$ECHO
"MKDIR='
$MKDIR
'"
>>
$BUILD_EXECUTE_CONFIG
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment