-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·33 lines (27 loc) · 1009 Bytes
/
build.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1009 Bytes
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
#!/bin/bash
# Build script for Math Presentation: Stop Fighting Wraparound
# This creates both single-file and bundle versions optimized for different use cases
set -e # Exit on any error
# Check if Python is available
if ! command -v python3 &> /dev/null; then
echo "❌ Error: Python 3 is required but not installed"
exit 1
fi
# Check if required Python packages are available
python3 -c "import yaml" 2>/dev/null || {
echo "❌ Error: Required Python packages not found"
echo "Please install: pip install PyYAML"
exit 1
}
# Run the simple builder (our new math-specific builder)
python3 build.py "$@"
# Check if build was successful
if [ -f "docs/index.html" ] && [ -d "docs/presentation_bundle" ]; then
# Show file sizes
single_size=$(du -h docs/index.html | cut -f1)
bundle_size=$(du -sh docs/presentation_bundle | cut -f1)
echo "📄 Single file: $single_size | 📁 Bundle: $bundle_size"
else
echo "❌ Build failed - output files not found"
exit 1
fi