#!/bin/sh # echo " Setting up pacman" wherewasi=`pwd` pacman_version=2.108 if [ -d pacman-$pacman_version ] ; then cd pacman-$pacman_version . setup.sh cd - else which wget if [ $? -ne 0 ] ; then echo "wget is required" exit 0 else echo "Would you like to obtain pacman-$pacman_version [y] " read ans if [ "$ans" = "n" ] ; then echo "What the heck" exit 0 fi wget http://physics.bu.edu/~youssef/pacman/sample_cache/tarballs/pacman-$pacman_version.tar.gz fi if [ $? -eq 0 ] ; then tar xzvf pacman-$pacman_version.tar.gz cd pacman-$pacman_version ; . setup.sh ; cd - fi fi