emacs: Pass arguments to temacs

This commit is contained in:
Fredrik Fornwall 2015-08-03 17:29:18 -04:00
parent e41b40984a
commit 1461c1b4a3

View File

@ -58,8 +58,8 @@ termux_step_post_configure () {
termux_step_post_make_install () {
rm $TERMUX_PREFIX/bin/emacs $TERMUX_PREFIX/bin/emacs-$TERMUX_PKG_VERSION
echo "#!/system/bin/sh" > $TERMUX_PREFIX/bin/emacs
echo "exec temacs -l loadup" >> $TERMUX_PREFIX/bin/emacs
echo "#!/$TERMUX_PREFIX/bin/sh" > $TERMUX_PREFIX/bin/emacs
echo "exec temacs -l loadup \$@" >> $TERMUX_PREFIX/bin/emacs
chmod +x $TERMUX_PREFIX/bin/emacs
cp $TERMUX_PKG_BUILDDIR/src/temacs $TERMUX_PREFIX/bin/temacs
}