Commit fd580947 authored by gsell's avatar gsell
Browse files

scripts/emacs.build: scripts to Emacs added

parent 00c21ffe
......@@ -28,6 +28,35 @@ function em.configure() {
|| exit 1
}
function em.post_install() {
cat > "${PREFIX}/bin/Emacs" <<\EOF
#!/bin/bash
declare -r OS=$(uname -s)
if [[ "${OS}" == "Darwin" ]]; then
open "${EMACS_DIR}/Emacs.app" --args "$@"
else
"${EMACS_DIR}/bin/emacs" "$@"
fi
EOF
cat > "${PREFIX}/bin/Emacsclient" <<\EOF
#!/bin/bash
declare -r OS=$(uname -s)
if [[ "${OS}" == "Darwin" ]]; then
"${EMACS_DIR}/Emacs.app/Contents/MacOS/bin/emacsclient" -c "$@"
else
"${EMACS_DIR}/bin/emacsclient" -c "$@" &
fi
EOF
chmod 0755 "${PREFIX}/bin/Emacs"
chmod 0755 "${PREFIX}/bin/Emacsclient"
}
em.add_to_family 'Tools'
em.set_build_dependencies ${build_dependencies}
em.make_all
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment