8 #VIA_ARGS="some additional flags"
11 DMAIL="distfiles@pld-linux.org"
13 # CVS LOGIN or fill it by hand :)
14 tmp=$(awk -F: '{ print $3; }' CVS/Root)
27 Usage: fetchsrc_request file.spec [BRANCH]
37 if [ "$2" != "" ]; then
43 if [[ "$SPEC" != *.spec ]]; then
47 if [ "$VIA" = "SENDMAIL" ]; then
48 echo >&2 "Requesting $SPEC:$BRANCH via sendmail${VIA_ARGS:+ ($VIA_ARGS)}"
49 cat <<EOF | /usr/sbin/sendmail -t $VIA_ARGS
51 From: $LOGIN <$LOGIN@$HOST>
52 Subject: fetchsrc_request notify
54 X-distfiles-request: yes
62 echo >&2 "Requesting $SPEC:$BRANCH via SMTP ($VIA:25)"
63 cat <<EOF | /usr/bin/nc $VIA 25 > /dev/null
65 MAIL FROM: $LOGIN <$LOGIN@$HOST>
69 Subject: fetchsrc_request notify
71 X-distfiles-request: yes