install.sh 472 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. set -e
  3. # Flex install script
  4. # Installs flex-2.6.4 to the specified directory
  5. build_dir=$1
  6. install_dir=$2
  7. install_type=$3
  8. echo "Installing flex to ${install_dir}..."
  9. # Change to source directory
  10. cd sources/flex
  11. echo "Running make install..."
  12. make DESTDIR=${install_dir} install
  13. echo "Creating lex compatibility links..."
  14. ln -sv flex ${install_dir}${PREFIX}/bin/lex
  15. ln -sv flex.1 ${install_dir}${PREFIX}/share/man/man1/lex.1
  16. echo "Installation complete."