blob: 7174afe212ed9909b107d94aa258853b17ffeeff (
plain) (
blame)
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
30
31
32
33
34
|
#!/bin/sh
# configurable variables
pb=/var/portbuild
. ${pb}/portbuild.conf
lock=${pb}/cppackages.lock
unset DISPLAY
echo "Subject: package copying logs"
echo
echo "Called with arguments: "${1+"$@"}
echo "Started at $(date)"
if [ $# != 1 ]; then
echo "usage: $0 branch"
exit 1
fi
if [ -e ${lock} ]; then
echo "Skipped since lock file exists"
exit 1
fi
touch ${lock}
cd $pb
tar -cf - $1/packages | ssh $ftpsite -l $user tar -C $packagedir -xvf - 2>&1 | tail -100
echo "Ended at $(date)"
rm -f ${lock}
|