-
-
Save ay65535/2190bcd9832061c03584 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Build Zsh from sources on Ubuntu. | |
# From http://zsh.sourceforge.net/Arc/git.html and sources INSTALL file. | |
PREFIX=/home/2012/ats/local | |
MANDIR=/home/2012/ats/local/share/man | |
BINDIR=/home/2012/ats/local/bin | |
INFODIR=/home/2012/ats/local/share/info | |
# Some packages may be missing | |
sudo aptitude install git gcc make autoconf yodl texinfo libncursesw5-dev libpcre3-dev && \ | |
mkdir ~/local/src/git.code.sf.net/p/zsh | |
cd ~/local/src/git.code.sf.net/p/zsh | |
git clone git://git.code.sf.net/p/zsh/code && \ | |
cd code || \ | |
cd code && \ | |
git clean -df && \ | |
mkdir -p $PREFIX | |
mkdir -p $MANDIR | |
mkdir -p $BINDIR | |
mkdir -p $INFODIR | |
./Util/preconfig && \ | |
# Options from Ubuntu Zsh package rules file (http://launchpad.net/ubuntu/+source/zsh) | |
./configure --prefix=$PREFIX \ | |
--mandir=$MANDIR \ | |
--bindir=$BINDIR \ | |
--infodir=$INFODIR \ | |
--enable-maildir-support \ | |
--with-tcsetpgrp \ | |
--with-term-lib="ncursesw" \ | |
--enable-cap \ | |
--enable-pcre \ | |
--enable-readnullcmd=pager \ | |
--enable-custom-patchlevel=Debian \ | |
LDFLAGS="-Wl,--as-needed -g" && \ | |
make && \ | |
make check && \ | |
make install && \ | |
make install.info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment