#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi cd $TMP tar xyvf $CWD/zsh-4.0.1.tar.bz2 tar xyvf $CWD/zsh-4.0.1-doc.tar.bz2 cd zsh-4.0.1 ./configure --prefix=/usr i386-slackware-linux make make install mkdir /install cat $CWD/doinst.sh > /install/doinst.sh rm /usr/bin/zsh-4.0.1 # extra... mv /usr/bin/zsh /bin/zsh mkdir -p /usr/doc/zsh-4.0.1/html-docs cp -a INSTALL LICENCE META-FAQ README /usr/doc/zsh-4.0.1 chown -R root.root Doc cp -a Doc/*.html /usr/doc/zsh-4.0.1/html-docs mkdir -p /usr/info cp -a Doc/*info* /usr/info chown -R root.root /usr/doc/zsh-4.0.1