| 123456789101112131415161718192021222324252627282930313233 |
- #!/bin/bash
- set -e
- # XZ Utils 5.8.1 install script
- # Installs the built package to the destination directory
- build_dir=$1
- install_dir=$2
- install_type=$3
- # With simpleBuildEnvironment flag, we're already in build directory
- # DESTDIR is overridden to install_dir by USM
- # Navigate to source directory if needed
- if [ ! -f "Makefile" ]; then
- if [ -d "sources/xz/xz" ]; then
- cd sources/xz/xz
- elif [ -d "xz/xz" ]; then
- cd xz/xz
- elif [ -d "xz" ]; then
- cd xz
- else
- echo "Error: Makefile not found"
- echo "Contents of current directory:"
- ls -la
- exit 1
- fi
- fi
- echo "Installing XZ Utils 5.8.1 to ${install_dir}..."
- make DESTDIR=${install_dir} install
- echo "Installation complete."
|