>>>> "nbecker" == nbecker
<nbecker(a)fred.net> writes:
nbecker> This script reads a file produced from the command:
nbecker> xemacs -batch -vanilla -f list-load-path-shadows
nbecker> Note you must edit the output to remove the crud at the beginning and
nbecker> end. Then run this script with that file as stdin:
nbecker> #!/usr/bin/python2
nbecker> import sys
nbecker> import string
nbecker> import os
nbecker> def move (file):
nbecker> if (os.path.exists (file)):
nbecker> print file
nbecker> os.rename (file, file + ".duplicate")
nbecker> for line in sys.stdin.readlines():
nbecker> file = string.split (line)[0]
nbecker> move (file + ".el")
nbecker> move (file + ".elc")
Blasphemy! It should be elisp!
(Sorry, too lazy to code up the elisp equivalent, plus, I have to go
home now....)
Ray