Skip to content

Commit

Permalink
travis: Fix building of zsh 5.0.2 and 5.0.8 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mafredri committed Dec 14, 2018
1 parent 43de5e0 commit 98d32af
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,16 @@ before_script:
- >
setup_zsh() {
dest="$ZSH_DIST/$1"
tar_type=.tar.xz
tar_args=xJ
case $1 in
5.0.8|5.0.2) tar_type=.tar.gz; tar_args=xz;;
esac
if [[ ! -d $dest/bin ]]; then
tmp="$(mktemp --directory --tmpdir="${TMPDIR:/tmp}" zshbuild.XXXXXX)"
(
cd "$tmp" &&
curl -L http://downloads.sourceforge.net/zsh/zsh-${1}.tar.xz | tar xJ &&
curl -L http://downloads.sourceforge.net/zsh/zsh-${1}${tar_type} | tar ${tar_args} &&
cd zsh-$1 &&
./configure --prefix="$dest" &&
make &&
Expand Down

0 comments on commit 98d32af

Please sign in to comment.