Forgot executable bit rip
This commit is contained in:
parent
2109d1f7af
commit
d08519918c
4
scripts/install_emacs.sh
Normal file → Executable file
4
scripts/install_emacs.sh
Normal file → Executable file
@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
[ -z "$EMACS_VERSION" ] && echo "Usage: EMACS_VERSION=25.1 install-emacs.sh or EMACS_VERSION=snapshot install-emacs.sh" && exit 1
|
[ -z "$EMACS_VERSION" ] && echo "Usage: EMACS_VERSION=25.1 install-emacs.sh or EMACS_VERSION=snapshot install-emacs.sh" && exit 1
|
||||||
[ -z "$EMACS_URL" ] && EMACS_URL="http://mirror.aarnet.edu.au/pub/gnu/emacs/"
|
[ -z "$EMACS_URL" ] && EMACS_URL="http://mirror.aarnet.edu.au/pub/gnu/emacs/"
|
||||||
# I've assign 12G memory to /tmp as ramdisk
|
|
||||||
[ -z "$EMACS_TMP" ] && EMACS_TMP="/tmp"
|
[ -z "$EMACS_TMP" ] && EMACS_TMP="/tmp"
|
||||||
|
|
||||||
if [ "$EMACS_VERSION" != "snapshot" ]; then
|
if [ "$EMACS_VERSION" != "snapshot" ]; then
|
||||||
@ -9,9 +8,6 @@ if [ "$EMACS_VERSION" != "snapshot" ]; then
|
|||||||
curl $EMACS_URL/emacs-$EMACS_VERSION.tar.gz | tar xvz -C $EMACS_TMP
|
curl $EMACS_URL/emacs-$EMACS_VERSION.tar.gz | tar xvz -C $EMACS_TMP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# @see http://wiki.gentoo.org/wiki/Project:Emacs/GNU_Emacs_developer_guide
|
|
||||||
# @see http://packages.gentoo.org/package/app-editors/emacs for info on Gentoo Linux
|
|
||||||
# --without-gtk and --without-gtk3 is optional
|
|
||||||
echo "Installing Emacs ..."
|
echo "Installing Emacs ..."
|
||||||
if [ "$EMACS_VERSION" = "snapshot" ]; then
|
if [ "$EMACS_VERSION" = "snapshot" ]; then
|
||||||
cd $HOME/projs/emacs && mkdir -p $HOME/myemacs/snapshot && rm -rf $HOME/myemacs/snapshot/* && ./autogen.sh && ./configure CFLAGS=-no-pie --prefix=$HOME/myemacs/snapshot --without-x --without-dbus --without-sound --with-gnutls=no && make -j6 && make install
|
cd $HOME/projs/emacs && mkdir -p $HOME/myemacs/snapshot && rm -rf $HOME/myemacs/snapshot/* && ./autogen.sh && ./configure CFLAGS=-no-pie --prefix=$HOME/myemacs/snapshot --without-x --without-dbus --without-sound --with-gnutls=no && make -j6 && make install
|
||||||
|
Loading…
Reference in New Issue
Block a user