chiark / gitweb /
The great Gnus switchover!
[profile] / setup
diff --git a/setup b/setup
index b1dcf58923f7208a1eb83c2525a3e566e5dc3607..79a6f34de3e510ab73ca36858f3f2590b1a52aa4 100755 (executable)
--- a/setup
+++ b/setup
@@ -129,7 +129,7 @@ fi
 ## Symlink the various dotfiles into place
 dotfiles="
   bash_profile bash_logout bashrc inputrc bash_completion
-  emacs emacs-calc vm
+  emacs emacs-calc vm gnus.el
   vimrc mg
   mailrc signature
   cgrc tigrc
@@ -230,6 +230,7 @@ echo "Installing Emacs packages..."
 emacspkg="
   make-regexp
   ew-hols
+  mdw-gnus-patch
   git git-blame vc-git stgit
   quilt"
 for elib in $emacspkg; do
@@ -242,8 +243,12 @@ for elib in $emacspkg; do
                       (error 1))))'; then
     echo " already installed."
   else
-    $echon " downloading$echoc"
-    $GETURL $HOME$sub/lib/emacs/$elib.el $REPO/$elib.el
+    if [ -f $elib.el ]; then
+      cp $elib.el $HOME$sub/lib/emacs/$elib.el
+    else
+      $echon " downloading$echoc"
+      $GETURL $HOME$sub/lib/emacs/$elib.el $REPO/$elib.el
+    fi
     $echon " compiling$echoc"
     (cd $HOME$sub/lib/emacs;
       $emacs >/dev/null 2>&1 --no-site-file --batch \