88 lines
2.3 KiB
Bash
Executable File
88 lines
2.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Dubai Metaverse - Project Setup Script
|
|
# This script sets up the initial project structure and configuration
|
|
|
|
set -e # Exit on error
|
|
|
|
echo "=========================================="
|
|
echo "Dubai Metaverse - Project Setup"
|
|
echo "=========================================="
|
|
echo ""
|
|
|
|
# Check if Git is installed
|
|
if ! command -v git &> /dev/null; then
|
|
echo "Error: Git is not installed. Please install Git first."
|
|
exit 1
|
|
fi
|
|
|
|
# Check if Git LFS is installed
|
|
if ! command -v git-lfs &> /dev/null; then
|
|
echo "Warning: Git LFS is not installed. Large file tracking will not work."
|
|
echo "Please install Git LFS: https://git-lfs.github.com"
|
|
read -p "Continue anyway? (y/n) " -n 1 -r
|
|
echo
|
|
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "✓ Git LFS is installed"
|
|
# Initialize Git LFS
|
|
git lfs install
|
|
echo "✓ Git LFS initialized"
|
|
fi
|
|
|
|
# Initialize Git repository if not already initialized
|
|
if [ ! -d ".git" ]; then
|
|
echo "Initializing Git repository..."
|
|
git init
|
|
echo "✓ Git repository initialized"
|
|
else
|
|
echo "✓ Git repository already initialized"
|
|
fi
|
|
|
|
# Create directory structure
|
|
echo ""
|
|
echo "Creating directory structure..."
|
|
mkdir -p TASKS
|
|
mkdir -p docs
|
|
mkdir -p scripts
|
|
mkdir -p PROGRESS_REPORTS
|
|
mkdir -p houdini
|
|
mkdir -p data/{osm,elevation,references,processed}
|
|
|
|
echo "✓ Directory structure created"
|
|
|
|
# Set script permissions
|
|
echo ""
|
|
echo "Setting script permissions..."
|
|
chmod +x scripts/*.sh 2>/dev/null || true
|
|
echo "✓ Script permissions set"
|
|
|
|
# Check Python installation (for Python scripts)
|
|
if command -v python3 &> /dev/null; then
|
|
echo "✓ Python 3 is installed"
|
|
PYTHON_VERSION=$(python3 --version)
|
|
echo " Version: $PYTHON_VERSION"
|
|
else
|
|
echo "Warning: Python 3 is not installed. Some scripts may not work."
|
|
fi
|
|
|
|
# Summary
|
|
echo ""
|
|
echo "=========================================="
|
|
echo "Setup Complete!"
|
|
echo "=========================================="
|
|
echo ""
|
|
echo "Next steps:"
|
|
echo "1. Review documentation in root directory"
|
|
echo "2. Follow UE5_SETUP.md to install Unreal Engine 5.4"
|
|
echo "3. Create Unreal Engine project"
|
|
echo "4. Follow PROJECT_SETTINGS.md to configure engine"
|
|
echo "5. Install plugins (see PLUGINS.md)"
|
|
echo "6. Begin Phase 1, Week 2: Geospatial acquisition"
|
|
echo ""
|
|
echo "For more information, see README.md"
|
|
echo ""
|
|
|