X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/46c8775caa216d130b8fb8b1ceb568f4dc6d2717..fe623377defcfb3a80ce30b2b4c8f62d9999818f:/admin/org-synch.sh diff --git a/admin/org-synch.sh b/admin/org-synch.sh index 79c551b66..02696b25e 100755 --- a/admin/org-synch.sh +++ b/admin/org-synch.sh @@ -2,12 +2,12 @@ # this script expects $1 to be the download directory and $2 to have org-synch.el -PATH=/bin:/usr/bin:/usr/local/bin +PATH="/bin:/usr/bin:/usr/local/bin:${PATH}" -pkgname=`curl -s http://orgmode.org/pkg/daily/|perl -ne 'push @f, $1 if m/(org-\d{8}\.tar)/; END { @f = sort @f; print "$f[-1]\n"}'` +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"}'` cd $1 -wget -q http://orgmode.org/pkg/daily/${pkgname} -O ${pkgname}-tmp +wget -q http://orgmode.org/elpa/${pkgname} -O ${pkgname}-tmp if [ -f ${pkgname}-tmp ]; then rm -f org*.tar mv ${pkgname}-tmp ${pkgname} && \