File tree Expand file tree Collapse file tree 1 file changed +14
-7
lines changed
Expand file tree Collapse file tree 1 file changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,25 @@ apt-get update
2929
3030apt-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
3838EMACS_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[@]}
4343do
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
4653done
You can’t perform that action at this time.
0 commit comments