install 608 B

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