#!/bin/sh # # Adds $ETC/*.modules to the $HOME/.login@DOT_EXT@, .cshrc@DOT_EXT@, # .profile@DOT_EXT@, .bashrc@DOT_EXT@ & .kshenv@DOT_EXT@ # #set -x VERSION='$Id: add.ext.in,v 1.1.1.1 2000/06/28 00:17:32 rk Exp $' SKEL=@SKELPATH@ ETC=@ETCPATH@ # 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 <