| 1234567891011121314151617181920212223 |
- #!/bin/bash
- set -e
- # Flex install script
- # Installs flex-2.6.4 to the specified directory
- build_dir=$1
- install_dir=$2
- install_type=$3
- echo "Installing flex to ${install_dir}..."
- # Change to source directory
- cd sources/flex
- echo "Running make install..."
- make DESTDIR=${install_dir} install
- echo "Creating lex compatibility links..."
- ln -sv flex ${install_dir}${PREFIX}/bin/lex
- ln -sv flex.1 ${install_dir}${PREFIX}/share/man/man1/lex.1
- echo "Installation complete."
|