| 1234567891011121314151617181920212223 |
- #!/bin/sh
- # Install script for valaq
- # Build directory is passed as the first argument
- # Install directory is passed as the second argument
- # Install type is passed as the third argument (fresh, upgrade, downgrade)
- BUILD_DIR="$1"
- INSTALL_DIR="$2"
- INSTALL_TYPE="$3"
- if [ -z "$BUILD_DIR" ] || [ -z "$INSTALL_DIR" ]; then
- echo "Error: Build directory or install directory not specified"
- exit 1
- fi
- echo "Installing valaq to $INSTALL_DIR (type: $INSTALL_TYPE)"
- # Install the package
- echo "Installing..."
- meson install -C "$BUILD_DIR" --destdir "$INSTALL_DIR"
- echo "Installation completed for valaq"
|