mirror of
https://github.com/correl/melpa.git
synced 2024-12-18 11:06:10 +00:00
parent
75c5a43049
commit
466327d532
1 changed files with 27 additions and 0 deletions
27
missing.el
Executable file
27
missing.el
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/usr/bin/env emacs --script
|
||||
|
||||
(defun difference (left right)
|
||||
"compare two lists"
|
||||
(let ((caleft (car left))
|
||||
(caright (car right)))
|
||||
(cond
|
||||
((not left) right)
|
||||
((not right) left)
|
||||
((string< caleft caright)
|
||||
(cons caleft (difference (cdr left) right)))
|
||||
((string< caright caleft)
|
||||
(cons caright (difference left (cdr right))))
|
||||
(t (difference (cdr left) (cdr right))))))
|
||||
|
||||
(defun stripstuff (fn)
|
||||
"strip the date and extension"
|
||||
(string-match "\\\(.*\\\)-[0-9]+\.\\\(el$\\\|tar$\\\)" fn)
|
||||
(match-string 1 fn))
|
||||
|
||||
(mapc 'message
|
||||
(difference
|
||||
(print (sort (directory-files "recipes/" nil "[^.].*") 'string<))
|
||||
(print (sort (mapcar 'stripstuff (directory-files "packages/" nil "[^.].*\\\(el$\\\|tar$\\\)")) 'string<))))
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue