#!/bin/sh # # Adds $ETC/*.modules to the $HOME/.login, .cshrc, # .profile, .bashrc & .kshenv # #set -x VERSION='$Id: add.ext.in,v 1.1.1.1 2000/06/28 00:17:32 rk Exp $' SKEL=/etc/skel ETC=/etc # add the appropriate option to 'cp' such that it preserve symbolic links #CP="/bin/cp -h" # AIX CP="/bin/cp -d" # GNU/Linux /bin/cat </dev/null 2>&1 $CP -f $2 $1 fi } cpext() { /bin/echo "Checking if have $1 ...\c" if [ -f $1 ] then echo you do. OK. else /bin/cat <