utt/app/dist/common/prepare_conf.sh
pawelk 9b57c4d68c Kilka zmian technicznych, troche porzadku oraz uaktualnienie dystrybucji dla rpma.
git-svn-id: svn://atos.wmid.amu.edu.pl/utt@48 e293616e-ec6a-49c2-aa92-f4a8b91c5d16
2008-05-09 06:49:43 +00:00

15 lines
235 B
Bash
Executable File

#!/bin/sh
if test 3 -ne $#
then
echo "Usage: " `basename $0` src_conf_dir dest_conf_dir replacement
else
POLEC="s/PATH_PREFIX/$3/g"
for FN in `ls $1/*.conf`
do
BN=`basename ${FN}`
sed ${POLEC} ${FN} > $2/${BN}
done
fi