Skip to content

Commit

Permalink
update in util
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Jan 22, 2024
1 parent e739e4d commit c3e4c97
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Documentation/utils/util.el
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
apriori), run the function editfunc in the matlab/document.xml
file, pack the result again and delete the unpacked files in
Temp."
(let ((command-str ""))
(let ((mlxfilename (expand-file-name mlxfilename))
(command-str ""))
(setq command-str (concat "unzip " mlxfilename " -d Temp\n"))
(shell-command command-str)
(with-temp-buffer
Expand All @@ -15,7 +16,7 @@ Temp."
)
(setq command-str "cd Temp \n")
(setq command-str (concat command-str "zip -r temp.mlx * \n"))
(setq command-str (concat command-str "mv temp.mlx .. \n"))
(setq command-str (concat command-str "mv -f temp.mlx " mlxfilename " \n"))
(setq command-str (concat command-str "cd .. \n"))
(setq command-str (concat command-str "rm -r Temp/* \n"))
(shell-command command-str)
Expand All @@ -31,6 +32,6 @@ Temp."
)

;; example
;; (edit-and-compress "tutorial_2_changing_control_protocol_live.mlx" #'editfunc)
;; (edit-mlx "../../Examples/NoteBooks/tutorial_2_changing_control_protocol_live.mlx" #'editfunc)


0 comments on commit c3e4c97

Please sign in to comment.