source:
_old/app/dist/common/prepare_conf.sh
@
f712e16
Last change on this file since f712e16 was 57728c1, checked in by Mateusz Hromada <ruanda@…>, 15 years ago | |
---|---|
|
|
File size: 235 bytes |
Rev | Line | |
---|---|---|
[9b57c4d] | 1 | #!/bin/sh |
2 | ||
3 | if test 3 -ne $# | |
4 | then | |
5 | echo "Usage: " `basename $0` src_conf_dir dest_conf_dir replacement | |
6 | else | |
7 | POLEC="s/PATH_PREFIX/$3/g" | |
8 | ||
9 | for FN in `ls $1/*.conf` | |
10 | do | |
11 | BN=`basename ${FN}` | |
12 | sed ${POLEC} ${FN} > $2/${BN} | |
13 | done | |
14 | fi |
Note: See TracBrowser
for help on using the repository browser.