#!/bin/bash set -e # Readline 8.3 install script # Installs the readline library to the destination directory build_dir=$1 install_dir=$2 install_type=$3 echo "Installing readline-8.3 to ${install_dir}" # With simpleBuildEnvironment flag, we're already in build directory # Install the package make SHLIB_LIBS="-lncursesw" DESTDIR=${install_dir} install # Install documentation if desired if [ -d "doc" ]; then echo "Installing documentation..." mkdir -p ${install_dir}${DATADIR}/doc/readline-8.3 install -v -m644 doc/*.{ps,pdf,html,dvi} ${install_dir}${DATADIR}/doc/readline-8.3/ || true fi echo "Readline installation complete."