mirror of
https://github.com/correl/melpa.git
synced 2024-11-14 11:09:31 +00:00
Fix portability problem with #!/usr/bin/env (issue #203)
Passing the 'script' option to emacs doesn't work as expected on Linux, since the shebang is evaluated as: #!/usr/bin/env "emacs --script"
This commit is contained in:
parent
c2ea978956
commit
f4d2a1bf4d
3 changed files with 6 additions and 3 deletions
3
buildpkg
3
buildpkg
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env emacs --script
|
#!/bin/sh
|
||||||
|
:;exec emacs --script "$0" "$@"
|
||||||
|
|
||||||
(add-to-list 'load-path (file-name-directory load-file-name))
|
(add-to-list 'load-path (file-name-directory load-file-name))
|
||||||
|
|
||||||
|
|
3
migrate
3
migrate
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env emacs --script
|
#!/bin/sh
|
||||||
|
:;exec emacs --script "$0" "$@"
|
||||||
|
|
||||||
(defun read-from-file (file-name)
|
(defun read-from-file (file-name)
|
||||||
"read one lisp expression from a file"
|
"read one lisp expression from a file"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env emacs --script
|
#!/bin/sh
|
||||||
|
:;exec emacs --script "$0" "$@"
|
||||||
|
|
||||||
(defun difference (left right)
|
(defun difference (left right)
|
||||||
"compare two lists"
|
"compare two lists"
|
||||||
|
|
Loading…
Reference in a new issue