* build-glib1.sh: Use more portable syntax for functions. Fall

back to "ftp" for download, useful on BSD.
* build-glib2.sh: Likewise.
This commit is contained in:
Pavel Roskin 2003-11-20 22:02:36 +00:00
parent 99e6b0f929
commit 22d0061e4d
3 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,9 @@
2003-11-20 Pavel Roskin <proski@gnu.org>
* build-glib1.sh: Use more portable syntax for functions. Fall
back to "ftp" for download, useful on BSD.
* build-glib2.sh: Likewise.
* build-glib1.sh: New file - download and compile glib 1.2.x,
then compile mc against it.
* build-glib2.sh: New file - download and compile glib 2.x with

View File

@ -26,10 +26,11 @@ GLIB_TARBALL="glib-$GLIB_VERSION.tar.gz"
GLIB_URL="ftp://ftp.gtk.org/pub/gtk/v1.2/$GLIB_TARBALL"
GLIB_INSTDIR="$MC_TOPDIR/glib-inst"
function get_file() {
get_file() {
curl --remote-name "$1" || \
wget --passive-ftp "$1" || \
wget "$1" || \
ftp "$1" || \
exit 1
}

View File

@ -36,10 +36,11 @@ GETTEXT_DIR="gettext-$GETTEXT_VERSION"
GETTEXT_TARBALL="gettext-$GETTEXT_VERSION.tar.gz"
GETTEXT_URL="ftp://ftp.gnu.org/gnu/gettext/$GETTEXT_TARBALL"
function get_file() {
get_file() {
curl --remote-name "$1" || \
wget --passive-ftp "$1" || \
wget "$1" || \
ftp "$1" || \
exit 1
}