Skip to content

Commit

Permalink
Travis CI: Put GNU S/W download base URL in a dedicated variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmai committed Sep 5, 2018
1 parent 44fbab3 commit 116ccd1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,20 @@ before_install:
- if [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != "" || "$M4_VER" != "" ]]; then
GNUTOOLS_ROOT=`pwd`/../gnu-tools;
export PATH=$GNUTOOLS_ROOT/bin:$PATH;
GNU_DOWNLOAD_SITE=https://ftp.gnu.org/gnu;
fi
- if [[ "$M4_VER" != "" ]]; then
M4_XZ_URL=https://ftp.gnu.org/gnu/m4/m4-$M4_VER.tar.xz;
M4_XZ_URL=$GNU_DOWNLOAD_SITE/m4/m4-$M4_VER.tar.xz;
wget -O - $M4_XZ_URL | tar xf - --xz --directory ~;
(cd ~/m4-$M4_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j check && make install);
fi
- if [[ "$LIBTOOL_VER" != "" ]]; then
LIBTOOL_XZ_URL=https://ftp.gnu.org/gnu/libtool/libtool-$LIBTOOL_VER.tar.xz;
LIBTOOL_XZ_URL=$GNU_DOWNLOAD_SITE/libtool/libtool-$LIBTOOL_VER.tar.xz;
wget -O - $LIBTOOL_XZ_URL | tar xf - --xz --directory ~;
(cd ~/libtool-$LIBTOOL_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install);
fi
- if [[ "$AUTOMAKE_VER" != "" ]]; then
AUTOMAKE_XZ_URL=https://ftp.gnu.org/gnu/automake/automake-$AUTOMAKE_VER.tar.xz;
AUTOMAKE_XZ_URL=$GNU_DOWNLOAD_SITE/automake/automake-$AUTOMAKE_VER.tar.xz;
wget -O - $AUTOMAKE_XZ_URL | tar xf - --xz --directory ~;
(cd ~/automake-$AUTOMAKE_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install);
fi
Expand Down

0 comments on commit 116ccd1

Please sign in to comment.