lilu-update-dot-lilu.ros 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #!/bin/sh
  2. #|-*- mode:lisp -*-|#
  3. #|
  4. exec ros -Q -- $0 "$@"
  5. |#
  6. (progn ;;init forms
  7. (ros:ensure-asdf)
  8. #+quicklisp(ql:quickload '(:lilu-desk
  9. :lilu-my-dot)
  10. :silent t))
  11. (defpackage :ros.script.lilu-eval.3841839401
  12. (:use :cl))
  13. (in-package :ros.script.lilu-eval.3841839401)
  14. (opts:define-opts
  15. #.lilu-roswell:*default-help-option*
  16. #.lilu-roswell:*default-debugger-option*)
  17. (defun main (&rest argv)
  18. (lilu-roswell:init)
  19. (multiple-value-bind (options free-args)
  20. (lilu-roswell:parse-options argv
  21. :free-args-p nil)
  22. (declare (ignorable free-args))
  23. (lilu-roswell:options-check-for-help options
  24. :prefix nil
  25. :suffix nil
  26. :usage-of "lilu-eval.ros"
  27. :args "S-EXP ...")
  28. (lilu-debugger:with-debugger
  29. ((lilu-roswell:options-get-value options :debugger))
  30. (uiop:run-program (format nil "cp -r ~A/* ~~/.lilu/" (asdf:system-relative-pathname 'lilu-my-dot "./dot-lilu"))
  31. :force-shell t)
  32. (lilu-config:register-system-config-directories)
  33. (dolist (cf (lilu-config:find-system-config-files "./bin/"))
  34. (let ((cmd (format nil "cp ~A ~~/.lilu/bin/" cf)))
  35. (format *debug-io* "=> ~A~%" cmd)
  36. (uiop:run-program cmd :force-shell t))))))
  37. ;;; vim: set ft=lisp lisp: