gvsig-raster / org.gvsig.raster / tags / v2.2.1 / upload @ 22479
History | View | Annotate | Download (807 Bytes)
1 |
#/bin/sh |
---|---|
2 |
|
3 |
USER= |
4 |
PASS= |
5 |
|
6 |
URL_REPO="https://devel.gvsig.org/download/projects/Raster/pool/" |
7 |
FILE_TICKET=/tmp/ticket.txt |
8 |
|
9 |
rm $FILE_TICKET 2> /dev/null |
10 |
|
11 |
for dir in `ls` |
12 |
do |
13 |
if [ ! -d $dir ]; |
14 |
then |
15 |
continue; |
16 |
fi |
17 |
|
18 |
cd $dir |
19 |
|
20 |
for file in `ls *.gvspki` |
21 |
do |
22 |
echo $URL_REPO$dir/$file >> $FILE_TICKET |
23 |
echo "" >> $FILE_TICKET |
24 |
done |
25 |
cd .. |
26 |
done |
27 |
|
28 |
|
29 |
for dir in `ls` |
30 |
do |
31 |
|
32 |
if [ ! -d $dir ]; |
33 |
then |
34 |
continue; |
35 |
fi |
36 |
|
37 |
expect <<EOD |
38 |
set timeout -1 |
39 |
spawn cadaver $URL_REPO |
40 |
expect (y/n) |
41 |
send y\r |
42 |
expect dav:/download/projects/Raster/pool/> |
43 |
send "cd $dir\r" |
44 |
expect $dir/> |
45 |
send "lcd $dir\r" |
46 |
expect $PKG_DIR/> |
47 |
send "mput *.gvspki\r" |
48 |
expect "Nombre de usuario:" |
49 |
send $USER\r |
50 |
expect "Contraseña:" |
51 |
send $PASS\r |
52 |
expect $PKG_DIR/> |
53 |
send "mput *.gvspkg\r" |
54 |
expect $PKG_DIR/> |
55 |
send quit\r |
56 |
expect "cerrada." |
57 |
EOD |
58 |
done |
59 |
|