This commit is contained in:
Gwenhael Le Moine 2011-03-06 15:44:28 +07:00
parent dc42ac5bd7
commit f0263330ec

View file

@ -111,14 +111,14 @@ make install DESTDIR=$PKG || exit 1
EMACS_VERSION=$(echo "$(basename $(ls $PKG/usr/bin/emacs-2*))" | grep -o "[0-9\.]*") EMACS_VERSION=$(echo "$(basename $(ls $PKG/usr/bin/emacs-2*))" | grep -o "[0-9\.]*")
( cd $PKG/usr/bin ( cd $PKG/usr/bin
rm emacs rm emacs
mv emacs-${EMACS_VERSION} emacs-${EMACS_VERSION}-with-x11 mv emacs-${EMACS_VERSION} emacs-${EMACS_VERSION}-with-x11
cat <<EOF > $PKG/usr/bin/emacs cat <<EOF > $PKG/usr/bin/emacs
#!/bin/sh #!/bin/sh
XMODIFIERS= GTK_IM_MODULE= QT_IM_MODULE= /usr/bin/emacs-${EMACS_VERSION}-with-x11 "\$@" XMODIFIERS= GTK_IM_MODULE= QT_IM_MODULE= /usr/bin/emacs-${EMACS_VERSION}-with-x11 "\$@"
EOF EOF
chmod +x $PKG/usr/bin/emacs chmod +x $PKG/usr/bin/emacs
) )
if [ $ONLY_X11 == 0 ] ; then if [ $ONLY_X11 == 0 ] ; then