8 #VIA_ARGS="some additional flags"
11 DMAIL="distfiles@pld-linux.org"
13 # CVS LOGIN or fill it by hand :)
14 LOGIN=`cat CVS/Root | awk -F: '{ print $3; }' | perl -pi -e "s/@.+//"`
26 Usage: fetchsrc_request file.spec [BRANCH]
36 if [ "$2" != "" ]; then
42 if [ "$VIA" = "SENDMAIL" ]; then
43 cat <<EOF | /usr/sbin/sendmail -t $VIA_ARGS
45 From: $LOGIN <$LOGIN@$HOST>
46 Subject: fetchsrc_request notify
48 X-distfiles-request: yes
56 cat <<EOF | /usr/bin/nc $VIA 25 > /dev/null
58 MAIL FROM: $LOGIN <$LOGIN@$HOST>
62 Subject: fetchsrc_request notify
64 X-distfiles-request: yes