install.sh 648 B

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