[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 4ef7d17 1/3: [admin] Prefer GNU wget to curl.
From: |
Thien-Thi Nguyen |
Subject: |
[elpa] master 4ef7d17 1/3: [admin] Prefer GNU wget to curl. |
Date: |
Tue, 28 Feb 2017 01:04:46 -0500 (EST) |
branch: master
commit 4ef7d17dbf42a4278455b7f0403039ccf7851526
Author: Thien-Thi Nguyen <address@hidden>
Commit: Thien-Thi Nguyen <address@hidden>
[admin] Prefer GNU wget to curl.
Since we're already using wget in the program, anyway...
* admin/org-synch.sh (pkgname): Use wget instead of curl.
---
admin/org-synch.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/admin/org-synch.sh b/admin/org-synch.sh
index 46143ea..1bac8d7 100755
--- a/admin/org-synch.sh
+++ b/admin/org-synch.sh
@@ -11,7 +11,7 @@
# ADMIN-DIR/org-sync.el (func ‘org-sync’) to finish the job.
#
# Preconditions:
-# - Installed software: curl, perl, wget, emacs.
+# - Installed software: perl, wget, emacs.
# - Internet connection (i.e., can access orgmode.org over HTTP).
# - DOWNLOAD-DIR exists and rw.
# - ADMIN-DIR exists and readable.
@@ -29,7 +29,7 @@ test -L $0 || { hv=`dirname $0`/hv.sh ; test -r $hv && . $hv
; }
PATH="/bin:/usr/bin:/usr/local/bin:${PATH}"
-pkgname=`curl -s http://orgmode.org/elpa/|perl -ne 'push @f, $1 if
m/(org-\d{8}\.tar)/; END { @f = sort @f; print "$f[-1]\n"}'`
+pkgname=`wget -q http://orgmode.org/elpa/ -O-|perl -ne 'push @f, $1 if
m/(org-\d{8}\.tar)/; END { @f = sort @f; print "$f[-1]\n"}'`
cd $1
wget -q http://orgmode.org/elpa/${pkgname} -O ${pkgname}-tmp