Juan Jose Garcia-Ripoll
4 years ago
3 changed files with 42 additions and 2 deletions
@ -0,0 +1,15 @@ |
|||
function action3_gzip () { |
|||
gzip_build_dir="$emacs_build_build_dir/gzip" |
|||
gzip_zip_file="$emacs_build_zip_dir/gzip-${architecture}.zip" |
|||
|
|||
if test ! -f "${gzip_zip_file}"; then |
|||
(mkdir -p "$gzip_build_dir/usr/bin" \ |
|||
&& echo '%~dp0\gzip.exe -d %*' > "${gzip_build_dir}/usr/bin/gunzip.cmd" \ |
|||
&& cp /usr/bin/gzip.exe "${gzip_build_dir}/usr/bin/gzip.exe" \ |
|||
&& ensure_packages gzip \ |
|||
&& msys2_extra_package "msys2-runtime" "/" "" "$gzip_zip_file" \ |
|||
&& cd "${gzip_build_dir}" \ |
|||
&& zip -9vr "$gzip_zip_file" "usr") || return -1 |
|||
fi |
|||
emacs_extensions="$gzip_zip_file $emacs_extensions" |
|||
} |
@ -0,0 +1,6 @@ |
|||
(let* ((emacs-libexec-path (car (last exec-path))) |
|||
(emacs-libexec-ndx (string-match "libexec" emacs-libexec-path)) |
|||
(emacs-root (substring emacs-libexec-path 0 emacs-libexec-ndx))) |
|||
(add-to-list 'exec-path (expand-file-name "bin/" emacs-root)) |
|||
(add-to-list 'exec-path (expand-file-name "usr/bin/" emacs-root)) |
|||
(add-to-list 'load-path (expand-file-name "usr/share/emacs/site-lisp/" emacs-root))) |
Loading…
Reference in new issue