Skip to content

Instantly share code, notes, and snippets.

@MitchRatquest
Created June 2, 2016 22:47
Show Gist options
  • Save MitchRatquest/97a570a713569511f4f1ec4a5a38db56 to your computer and use it in GitHub Desktop.
Save MitchRatquest/97a570a713569511f4f1ec4a5a38db56 to your computer and use it in GitHub Desktop.
mama had a baby a;nd its head popped off
#!/bin/bash
###
### http://elinks.or.cz/download.html
###
### http://elinks.or.cz/download/elinks-current-unstable.tar.bz2
###
### http://cygwin.com/ml/cygwin-apps/2003-12/msg00323.html
### --without-x --enable-leds --enable-fastmem --enable-256-colors
###
### $ /usr/bin/links -width 132 -dump http://elinks.or.cz/download.html
###
#
# % git clone http://elinks.cz/elinks.git
# % cd elinks
# % git branch elinks-0.11 origin/elinks-0.11
# % git branch -v
# % git checkout master
# % git checkout elinks-0.11
if [[ -d $HOME/Archive/. ]] ; then
SRCDIR="$HOME/Archive"
fi
if [[ -d /*src*/. ]] ; then
SRCDIR="$(/bin/ls -1d /*src*/. | tail -1 )"
fi
if [[ ! -d "$SRCDIR" ]] ; then
mkdir -p $HOME/Archive
SRCDIR="$HOME/Archive"
fi
if [[ ! -d "$SRCDIR" ]] ; then
echo "$0 : 5679917741134199 : ERROR SRCDIR $SRCDIR not found"
exit
fi
cd "$SRCDIR"
mkdir elinks
if [[ ! -d "elinks" ]] ; then
echo "$0 : 8589378762966375 : ERROR Dir $SRCDIR/elinks not found"
exit
fi
cd elinks
/bin/rm -rf elinks-current-unstable.tar.bz2
wget 'http://elinks.or.cz/download/elinks-current-unstable.tar.bz2'
### LC_ALL=en TERM=vt100 /usr/local/bin/elinks 'http://www.google.com/'
mkdir -p elinks-current-unstable.tar.bz2_d
cd elinks-current-unstable.tar.bz2_d
tar -jxvf ../elinks-current-unstable.tar.bz2
export CC=/usr/bin/gcc-4
export MAKE=/usr/bin/make
cd elinks*/.
./configure --prefix=/usr/local --without-x --enable-leds
--enable-fastmem --enable-256-colors
cat ./Makefile.config | sed 's/[-]*rdynamic/--rdynamic/' >
./Makefile.config.new
cp -p ./Makefile.config ./Makefile.config.old
cp -p ./Makefile.config.new ./Makefile.config
make all
make install
type -pa elinks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment