config() {
  NEW="$1"
  OLD="$(dirname $NEW)/$(basename $NEW .new)"
  # If there's no config file by that name, mv it over:
  if [ ! -r $OLD ]; then
    mv $NEW $OLD
  elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
    # toss the redundant copy
    rm $NEW
  fi
  # Otherwise, we leave the .new copy for the admin to consider...
}

config etc/xdg/surfraw/conf.new
config etc/xdg/surfraw/bookmarks.new

( cd usr/bin ; rm -rf sr )
( cd usr/bin ; ln -sf surfraw sr )
( cd usr/man/man1 ; rm -rf S.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz S.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf W.1.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz W.1.gz.gz )
( cd usr/man/man1 ; rm -rf acronym.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz acronym.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf ads.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz ads.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf alioth.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz alioth.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf amazon.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz amazon.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf archpkg.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz archpkg.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf archwiki.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz archwiki.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf arxiv.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz arxiv.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf ask.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz ask.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf aur.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz aur.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf austlii.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz austlii.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf bbcnews.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz bbcnews.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf bing.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz bing.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf bookfinder.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz bookfinder.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf bugmenot.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz bugmenot.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf bugzilla.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz bugzilla.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf cia.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz cia.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf cite.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz cite.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf cliki.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz cliki.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf cnn.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz cnn.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf comlaw.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz comlaw.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf commandlinefu.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz commandlinefu.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf ctan.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz ctan.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf currency.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz currency.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf cve.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz cve.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debbugs.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debbugs.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debcodesearch.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debcodesearch.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debcontents.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debcontents.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf deblists.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz deblists.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf deblogs.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz deblogs.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debpackages.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debpackages.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debpkghome.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debpkghome.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debpts.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debpts.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debsec.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debsec.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debvcsbrowse.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debvcsbrowse.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf debwiki.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz debwiki.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf deja.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz deja.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf discogs.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz discogs.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf duckduckgo.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz duckduckgo.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf ebay.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz ebay.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf etym.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz etym.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf excite.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz excite.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf finkpkg.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz finkpkg.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf foldoc.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz foldoc.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf freebsd.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz freebsd.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf freedb.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz freedb.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf freshmeat.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz freshmeat.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf fsfdir.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz fsfdir.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf gcache.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz gcache.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf genbugs.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz genbugs.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf genportage.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz genportage.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf github.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz github.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf google.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz google.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf gutenberg.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz gutenberg.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf imdb.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz imdb.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf ixquick.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz ixquick.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf jamendo.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz jamendo.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf javasun.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz javasun.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf l1sp.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz l1sp.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf lastfm.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz lastfm.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf leodict.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz leodict.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf lsm.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz lsm.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf macports.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz macports.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf mathworld.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz mathworld.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf mdn.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz mdn.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf mininova.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz mininova.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf musicbrainz.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz musicbrainz.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf mysqldoc.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz mysqldoc.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf netbsd.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz netbsd.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf ntrs.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz ntrs.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf openbsd.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz openbsd.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf oraclesearch.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz oraclesearch.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf pgdoc.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz pgdoc.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf pgpkeys.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz pgpkeys.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf phpdoc.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz phpdoc.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf pin.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz pin.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf piratebay.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz piratebay.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf priberam.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz priberam.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf pubmed.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz pubmed.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf rae.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz rae.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf rfc.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz rfc.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf scholar.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz scholar.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf scpan.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz scpan.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf searx.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz searx.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf slashdot.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz slashdot.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf slinuxdoc.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz slinuxdoc.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf sourceforge.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz sourceforge.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf springer.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz springer.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf sr.1.gz.gz )
( cd usr/man/man1 ; ln -sf surfraw.1.gz.gz sr.1.gz.gz )
( cd usr/man/man1 ; rm -rf stack.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz stack.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf stockquote.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz stockquote.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf thesaurus.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz thesaurus.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf translate.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz translate.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf urban.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz urban.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf w3css.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz w3css.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf w3html.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz w3html.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf w3link.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz w3link.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf w3rdf.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz w3rdf.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf wayback.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz wayback.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf webster.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz webster.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf wikipedia.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz wikipedia.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf wiktionary.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz wiktionary.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf woffle.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz woffle.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf wolfram.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz wolfram.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf worldwidescience.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz worldwidescience.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf yahoo.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz yahoo.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf yandex.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz yandex.1sr.gz.gz )
( cd usr/man/man1 ; rm -rf youtube.1sr.gz.gz )
( cd usr/man/man1 ; ln -sf elvi.1sr.gz.gz youtube.1sr.gz.gz )
