mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
tools: licence.el: Minor change.
This commit is contained in:
1 parent
deaf114fa3
commit
e03ebedfdf
1 file changed
+8
-4
+8
-4
@@ -85,16 +85,20 @@
|
|||||||
(defun pamhyr-update-all-license ()
|
(defun pamhyr-update-all-license ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((root (pamhyr-root-dir))
|
(let* ((root (pamhyr-root-dir))
|
||||||
(files-with-copyright (split-string
|
(files-with-copyright
|
||||||
|
(split-string
|
||||||
(shell-command-to-string
|
(shell-command-to-string
|
||||||
(format "git -C '%s' grep -e 'Copyright (C)'|cut -d ':' -f 1|uniq|grep [.]py"
|
(format "git -C '%s' grep -e 'Copyright (C)'|cut -d ':' -f 1|uniq|grep [.]py"
|
||||||
root))
|
root))
|
||||||
"\n"))
|
"\n"))
|
||||||
(files (split-string
|
(files
|
||||||
|
(split-string
|
||||||
(shell-command-to-string
|
(shell-command-to-string
|
||||||
(format "git -C '%s' ls-files | grep [.]py"
|
(format "git -C '%s' ls-files | grep [.]py"
|
||||||
root))))
|
root))
|
||||||
(files-without-copyright (seq-filter (lambda (file)
|
"\n"))
|
||||||
|
(files-without-copyright
|
||||||
|
(seq-filter (lambda (file)
|
||||||
(not (member file files-with-copyright)))
|
(not (member file files-with-copyright)))
|
||||||
files)))
|
files)))
|
||||||
(message (format "%s" files-with-copyright))
|
(message (format "%s" files-with-copyright))
|
||||||
|
|||||||
Reference in new issue
Block a user