mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
* 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:
parent
99e6b0f929
commit
22d0061e4d
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user