|
Last change
on this file since 136 was
136,
checked in by rosiere, 16 years ago
|
|
1) Add new algo in ifetch queue
2) Add Cancel bit
3) new config
|
-
Property svn:executable set to
*
-
Property svn:keywords set to
Id
|
|
File size:
666 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | prefix=$2; |
|---|
| 4 | suffix=$1; |
|---|
| 5 | |
|---|
| 6 | for i in *; do |
|---|
| 7 | |
|---|
| 8 | old=$i; |
|---|
| 9 | |
|---|
| 10 | if test -n "${prefix}"; then |
|---|
| 11 | prefix_old=$(echo $old | cut -d${prefix} -f1)${prefix}; |
|---|
| 12 | old=$(echo $old | cut -d${prefix} -f2); |
|---|
| 13 | fi; |
|---|
| 14 | if test -n "${suffix}"; then |
|---|
| 15 | suffix_old=${suffix}$(echo $old | cut -d${suffix} -f2); |
|---|
| 16 | old=$(echo $old | cut -d${suffix} -f1); |
|---|
| 17 | fi; |
|---|
| 18 | |
|---|
| 19 | x=$(echo $old | cut -d_ -f1 | tr -d x); |
|---|
| 20 | w=$(echo $old | cut -d_ -f2 | tr -d w); |
|---|
| 21 | n=$(echo $old | cut -d_ -f3); |
|---|
| 22 | new=x0${x}_w0${w}_0${n}; |
|---|
| 23 | |
|---|
| 24 | echo "${i} : ${old} -> ${new}"; |
|---|
| 25 | |
|---|
| 26 | file_new=${prefix_old}${new}${suffix_old}; |
|---|
| 27 | |
|---|
| 28 | sed s/${old}/${new}/ ${i} > ${file_new}; |
|---|
| 29 | # svn rm ${i}; |
|---|
| 30 | done; |
|---|
Note: See
TracBrowser
for help on using the repository browser.