Révision fa3809ff
Ajouté par Julien Enselme il y a environ 10 ans
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 |
Formats disponibles : Unified diff
Take into account drush aliases for #374.