blob: 3195f2617b641fac7d6cf0725f897c3571d91d4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
RHOST=qpe.sf.net
RDIR=/home/groups/q/qp/qpe/htdocs/packages/ipaq/unstable/
NEW=""
rm -f *.ipk
ssh $RHOST -C "cd $RDIR; ls *.ipk" >currentipks &
./mkipks "$@"
wait # for ssh
for i in *.ipk
do
if grep -q $i currentipks
then
rm $i
else
NEW="$NEW $i";
fi
done
if [ -n "$NEW" ]
then
scp $NEW $RHOST:$RDIR
rm $NEW
ssh $RHOST -C "cd $RDIR; chmod g+w *.ipk; ./mkPackages"
fi
rm currentipks
|