#!/bin/bash set -e sed -i '/MV.*old/d' Makefile.in && sed -i '/{OLDSUFF}/c:' support/shlib-install && ./configure --prefix=/usr \ --disable-static \ --with-curses \ --disable-bracketed-paste-default \ --docdir=/usr/share/doc/readline-"${VERSION}" make SHLIB_LIBS="-lncursesw" && make SHLIB_LIBS="-lncursesw" -j1 install && mv -v /usr/lib/lib{readline,history}.so.* /lib && ln -sfv ../../lib/"$(readlink /usr/lib/libreadline.so)" /usr/lib/libreadline.so && ln -sfv ../../lib/"$(readlink /usr/lib/libhistory.so )" /usr/lib/libhistory.so && install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-"${VERSION}"