-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrepublish-all-components.sh
More file actions
executable file
·107 lines (96 loc) · 3.14 KB
/
republish-all-components.sh
File metadata and controls
executable file
·107 lines (96 loc) · 3.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
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
101
102
103
104
105
106
107
#!/bin/bash
# Script to republish all components with the new multi-component support
#
# This will properly update the InRelease file to include ALL components
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CHANNEL="${1:-stable}"
DISTRO="${2:-noble}"
echo "=========================================="
echo "Republishing All Components"
echo "=========================================="
echo "Channel: $CHANNEL"
echo "Distro: $DISTRO"
echo "Tool: feelpp-apt-publish v1.1.0"
echo "=========================================="
echo
# Activate the virtual environment if it exists
if [[ -d "$SCRIPT_DIR/.venv" ]]; then
echo "Activating virtual environment..."
source "$SCRIPT_DIR/.venv/bin/activate"
fi
# Verify we have the updated version
echo "Checking tool version..."
feelpp-apt-publish --version
echo
echo "This will republish components in order:"
echo " 1. ktirio-urban-building (if packages available)"
echo " 2. mmg (if packages available)"
echo " 3. parmmg (if packages available)"
echo
read -p "Continue? (y/N) " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Cancelled."
exit 1
fi
# Note: You'll need to provide the actual package directories
# This is a template - adjust paths as needed
# Component 1: ktirio-urban-building
if [[ -d "/path/to/ktirio/packages" ]]; then
echo
echo "=========================================="
echo "Publishing: ktirio-urban-building"
echo "=========================================="
feelpp-apt-publish \
--component ktirio-urban-building \
--channel "$CHANNEL" \
--distro "$DISTRO" \
--debs /path/to/ktirio/packages \
--verbose
else
echo
echo "⚠️ Skipping ktirio-urban-building (packages not found)"
fi
# Component 2: mmg
if [[ -d "/nvme0/prudhomm/Devel/feelpp.quickfix/third-party/mmg/packages" ]]; then
echo
echo "=========================================="
echo "Publishing: mmg"
echo "=========================================="
feelpp-apt-publish \
--component mmg \
--channel "$CHANNEL" \
--distro "$DISTRO" \
--debs /nvme0/prudhomm/Devel/feelpp.quickfix/third-party/mmg/packages \
--verbose
else
echo
echo "⚠️ Skipping mmg (packages not found)"
fi
# Component 3: parmmg
if [[ -d "/nvme0/prudhomm/Devel/feelpp.quickfix/third-party/ParMmg/packages" ]]; then
echo
echo "=========================================="
echo "Publishing: parmmg"
echo "=========================================="
feelpp-apt-publish \
--component parmmg \
--channel "$CHANNEL" \
--distro "$DISTRO" \
--debs /nvme0/prudhomm/Devel/feelpp.quickfix/third-party/ParMmg/packages \
--verbose
else
echo
echo "⚠️ Skipping parmmg (packages not found)"
fi
echo
echo "=========================================="
echo "✓ Republishing Complete!"
echo "=========================================="
echo
echo "Verify the InRelease file includes all components:"
echo " curl -s https://feelpp.github.io/apt/$CHANNEL/dists/$DISTRO/InRelease | grep Components"
echo
echo "Expected: Components: ktirio-urban-building mmg parmmg"
echo