-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit-project.sh
More file actions
executable file
·47 lines (40 loc) · 1.14 KB
/
init-project.sh
File metadata and controls
executable file
·47 lines (40 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
set -e
echo "BlazeNeuro Project Initialization"
echo "=================================="
echo
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
# Create necessary directories
echo "[1/4] Creating directories..."
mkdir -p build logs
echo " ✓ Created build/ and logs/"
# Download missing sources
echo
echo "[2/4] Checking source packages..."
source_count=$(ls -1 sources/*.tar.* 2>/dev/null | wc -l)
if [[ $source_count -lt 10 ]]; then
echo " Downloading missing sources..."
bash scripts/download-sources.sh
else
echo " ✓ All sources present ($source_count packages)"
fi
# Verify system
echo
echo "[3/4] Verifying system requirements..."
bash verify.sh
# Set permissions
echo
echo "[4/4] Setting permissions..."
chmod +x build.sh verify.sh monitor-build.sh
chmod +x scripts/stages/*.sh scripts/download-sources.sh
chmod +x usb-installer/create-usb.sh
echo " ✓ Permissions set"
echo
echo "=================================="
echo "✓ Initialization complete!"
echo
echo "Next steps:"
echo " 1. Verify: ./verify.sh"
echo " 2. Build: sudo ./build.sh all"
echo " 3. USB: sudo ./build.sh usb /dev/sdX"