1
|
#!/bin/sh
|
2
|
PATH=/usr/local/bin:/usr/bin:/bin
|
3
|
|
4
|
##############
|
5
|
# nlehuby - 16 décembre 2011
|
6
|
# ceci est une copie quasi conforme du script initial drushall créé pour d6
|
7
|
##############
|
8
|
|
9
|
init_scripts.sh
|
10
|
|
11
|
if [ $# -lt 1 ]; then
|
12
|
echo "usage: $0 <drush args>"
|
13
|
exit 1
|
14
|
fi
|
15
|
|
16
|
cd /users/guest/assos/htmltest/sites
|
17
|
|
18
|
for dir in $(find . -maxdepth 1 -mindepth 1 -type d ! -name all)
|
19
|
do
|
20
|
if [ $1 = init ]
|
21
|
then
|
22
|
cd $dir
|
23
|
/users/guest/assos/bin/init_var.sh
|
24
|
cd -
|
25
|
else
|
26
|
cd $x;
|
27
|
echo $x
|
28
|
drush $*
|
29
|
cd -;
|
30
|
fi
|
31
|
done
|