scripts/Tools/emacs/build: install Emacs.app if OS is Darwin

This commit is contained in:
2015-05-19 09:20:09 +02:00
parent 6c610714ad
commit 524d4b055c

View File

@@ -37,6 +37,9 @@ function em.configure() {
}
function em.post_install() {
if [[ -d "${MODULE_BUILDDIR}/nextstep/Emacs.app" ]]; then
cp -a "${MODULE_BUILDDIR}/nextstep/Emacs.app" "${PREFIX}"
fi
mkdir -p "${PREFIX}/bin"
cat > "${PREFIX}/bin/Emacs" <<\EOF
#!/bin/bash