Project

General

Profile

Revision fa3809ff

Added by Julien Enselme about 10 years ago

Take into account drush aliases for #374.

View differences:

other-scripts/one-use/move-assos.sh
5 5
all occurences of the former emplacement are remplaced by the new one.
6 6
EOF
7 7

  
8
for file in $(ls $1/bin/*.sh) ; do
9
    sed "s#$1#$2#" > $file.tmp
10
    mv $file.tmp $file
8
correct_path() {
9
    sed "s#$1#$2#" < $3 > $3.tmp
10
    mv $3.tmp $3
11
}
12

  
13

  
14
# Bin
15
for file in $(ls bin/*.sh) ; do
16
   correct_path $1 $2 $file
11 17
done
18

  
19
# drush aliases
20
correct_path $1 $2 .drush/aliases.drushrc.php

Also available in: Unified diff