-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-all.sh
More file actions
executable file
·80 lines (67 loc) · 1.96 KB
/
setup-all.sh
File metadata and controls
executable file
·80 lines (67 loc) · 1.96 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
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
#!/bin/bash
# 🌟 Integral Philosophy Publishing System - Complete Setup
# Sets up all subprojects with beautiful output
set -e
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
CYAN='\033[0;36m'
NC='\033[0m'
print_style() {
echo -e "${2}${1}${NC}"
}
print_header() {
echo
print_style "🌟 Integral Philosophy Publishing System - Complete Setup" "$CYAN"
print_style "Modular Academic Content Processing Platform" "$BLUE"
echo
}
print_step() {
echo
print_style "$1 $2" "$YELLOW"
}
print_success() {
print_style "$CHECK $1" "$GREEN"
}
setup_subproject() {
local project=$1
local path="subprojects/$project"
if [ -d "$path" ]; then
print_step "⚙️" "Setting up $project..."
cd "$path"
if [ -f "pyproject.toml" ]; then
python -m pip install -e ".[dev]" --quiet
print_success "$project installed"
else
print_step "📦" "Installing $project..."
# Create basic structure if needed
mkdir -p src tests docs examples
print_success "$project structure created"
fi
cd ../..
else
print_step "⚠️" "$project not found, skipping..."
fi
}
print_header
# Setup all subprojects
setup_subproject "integral-philosophy-core"
setup_subproject "integral-philosophy-web"
setup_subproject "integral-philosophy-cli"
setup_subproject "integral-philosophy-docs"
setup_subproject "integral-philosophy-content"
setup_subproject "integral-philosophy-config"
setup_subproject "integral-philosophy-deploy"
setup_subproject "integral-philosophy-tests"
print_success "🌟 All subprojects setup complete!"
echo
print_style "🚀 Next steps:" "$BLUE"
echo " 1. Activate environment:"
echo " source venv/bin/activate"
echo " 2. Start full system:"
echo " ./start-full.sh"
echo " 3. Or work on individual subprojects:"
echo " cd subprojects/integral-philosophy-core"
echo