emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 01/02: * update-archive.sh (send_mail): Use `sendmail' and `rsync


From: Stefan Monnier
Subject: [elpa] 01/02: * update-archive.sh (send_mail): Use `sendmail' and `rsync'.
Date: Wed, 15 Oct 2014 13:18:21 +0000

monnier pushed a commit to branch master
in repository elpa.

commit b02724228bb11bb054cd68ac4ce040e5a000dc2e
Author: Stefan Monnier <address@hidden>
Date:   Wed Oct 15 09:17:41 2014 -0400

    * update-archive.sh (send_mail): Use `sendmail' and `rsync'.
---
 admin/update-archive.sh |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/admin/update-archive.sh b/admin/update-archive.sh
index de4a0a4..464a007 100755
--- a/admin/update-archive.sh
+++ b/admin/update-archive.sh
@@ -21,19 +21,13 @@ done
 send_mail () {
     to="$1"; shift
     title="$*"
-    mx_gnu_org="$(host -t mx gnu.org | sed 's/.*[      ]//')"
-    (sleep 5; echo "HELO elpa.gnu.org"
-     sleep 1; echo "MAIL FROM: <address@hidden>"
-     sleep 1; echo "RCPT TO: <$to>"
-     sleep 1; echo "DATA"
-     sleep 1; cat <<ENDDOC
+    (cat <<ENDDOC
 From: ELPA update <address@hidden>
 To: $to
 Subject: $title
 
 ENDDOC
-         cat -; echo
-         echo "."; sleep 1) | telnet "$mx_gnu_org" smtp
+     cat -) | /usr/sbin/sendmail "$to"
 }
 
 # Send an email to warn about a problem.
@@ -102,8 +96,7 @@ latest="emacs-packages-latest.tgz"
 (cd ../
  mkdir -p staging/packages
  # Not sure why we have `staging-old', but let's keep it for now.
- rm -rf staging-old
- cp -a staging staging-old
+ rsync -av --inplace --delete staging/. staging-old/.
  # Move new files into place but don't throw out old package versions.
  for f in build/archive/packages/*; do
      # PKG-VER



reply via email to

[Prev in Thread] Current Thread [Next in Thread]