"Fossies" - the Fresh Open Source Software archive 
Member "modules-3.2.10/ext/add.ext.in" of archive modules-3.2.10.tar.gz:
#! /bin/sh
#
# Adds $ETC/*.modules to the $HOME/.login@DOT_EXT@, .cshrc@DOT_EXT@,
# .profile@DOT_EXT@, .bashrc@DOT_EXT@ & .kshenv@DOT_EXT@
#
# @configure_input@
#
VERSION='$Id: 959e7ca148aeec2329fd5f78fb0871baa757a924 $'
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 <