Commit bf067f3
committed
Complete intelligent build system with remote repository monitoring
🎯 MAJOR ENHANCEMENT: Smart Change Detection System
## New Features:
### Intelligent Change Detection
- Local YAML file hash monitoring
- Remote GitHub repository commit tracking
- HTML file existence validation
- Automatic cache management with .cache/ directory
### Remote Repository Monitoring
- GitHub API integration for commit hash checking
- Course-specific repository mapping:
* digitalesysteme → VL_EingebetteteSysteme
* prozprog → VL_ProzeduraleProgrammierung
* softwareentwicklung → VL_Softwareentwicklung
* robotikprojekt → VL_Robotikprojekt
- Connection timeout handling for robust operation
### Performance Optimization
- Dramatic build time reduction (minutes → seconds for unchanged content)
- Skip unnecessary PDF generation when no changes detected
- Intelligent rebuild triggers only when needed
## Technical Implementation:
### External Shell Script (check_changes.sh)
- Clean separation of complex logic from Makefile
- Robust bash implementation with proper error handling
- SHA256 hash comparison for local changes
- GitHub API calls with timeout protection
### Enhanced Makefile
- Simplified course build logic using external script
- Maintained all existing functionality (PDF generation, asset organization, git integration)
- Added comprehensive status reporting
- Improved help documentation
### Cache System
- Hash-based change detection stored in .cache/ directory
- Automatic cache invalidation on changes
- .gitignore integration to exclude cache files from repository
## Build Decision Logic:
✅ YAML file changed → Rebuild
✅ Remote repository updated → Rebuild
✅ HTML file missing → Rebuild
⏭️ Nothing changed → Skip (massive time savings)
## Developer Experience:
- Status command shows comprehensive build information
- Clear feedback on why rebuilds are triggered
- Force rebuild options for development needs
- Maintained backward compatibility with existing workflow
This creates a production-ready, intelligent build system that dramatically improves development efficiency while maintaining reliability and adding remote change monitoring capabilities.1 parent a5b8caf commit bf067f3
2 files changed
+101
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 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 | | - | |
| 14 | + | |
42 | 15 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 16 | | |
47 | | - | |
48 | 17 | | |
49 | 18 | | |
50 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
0 commit comments