Skip to content

Commit 62603d9

Browse files
committed
Build Emacs.
1 parent 421a3d1 commit 62603d9

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

scripts/deploy.sh

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,25 @@ apt-get update
2929

3030
apt-get install -y libncurses-dev libxpm-dev libxaw7-dev \
3131
libtiff4-dev libpng-dev libgif-dev autoconf \
32-
automake texinfo curl
32+
automake texinfo make
3333

3434
# Build Emacs.
3535

36-
EMACS_DIRECTORY=/usr/local/emacs
37-
EMACS_SRC=$EMACS_DIRECTORY/src
36+
EMACS_DIR=/usr/local/emacs
37+
EMACS_SRC=$EMACS_DIR/src
3838
EMACS_VERSIONS=(emacs-24.3 emacs-24.4 emacs-24.5)
3939

40-
mkdir -p $EMACS_DIRECTORY $EMACS_SRC
40+
mkdir -p $EMACS_DIR $EMACS_SRC
4141

42-
for version in ${EMACS_VERSIONS[@]}
42+
for VERSION in ${EMACS_VERSIONS[@]}
4343
do
44-
arch=$EMACS_SRC/$version
45-
curl http://ftp.gnu.org/gnu/emacs/${version}.tar.xz -o $arch -z $arch -s
44+
FILE=${VERSION}.tar.xz
45+
PREFIX=$EMACS_DIR/$VERSION
46+
cd $EMACS_SRC
47+
wget -q http://ftp.gnu.org/gnu/emacs/$FILE
48+
tar xvJf $FILE
49+
cd $VERSION
50+
./configure --prefix=$PREFIX
51+
make
52+
make install
4653
done

0 commit comments

Comments
 (0)