-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmanage_submodules.sh
More file actions
executable file
Β·56 lines (53 loc) Β· 1.76 KB
/
manage_submodules.sh
File metadata and controls
executable file
Β·56 lines (53 loc) Β· 1.76 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
#!/bin/bash
# Submodule management script for mit-catalyze
set -e
echo "π§ ChEMBL MCP Server Submodule Management"
echo "=========================================="
case "${1:-help}" in
"init")
echo "π₯ Initializing submodules..."
git submodule init
git submodule update
echo "β
Submodules initialized"
;;
"update")
echo "π Updating submodules..."
git submodule update --remote --merge
echo "β
Submodules updated"
;;
"install")
echo "π¦ Installing Node.js dependencies..."
cd mcp_servers/chembl-mcp-server
npm install
npm run build
cd ../..
echo "β
Dependencies installed and built"
;;
"status")
echo "π Submodule status:"
git submodule status
;;
"clean")
echo "π§Ή Cleaning submodule..."
git submodule deinit -f mcp_servers/chembl-mcp-server
rm -rf .git/modules/mcp_servers/chembl-mcp-server
git rm -f mcp_servers/chembl-mcp-server
echo "β
Submodule removed"
;;
"help"|*)
echo "Usage: $0 {init|update|install|status|clean}"
echo ""
echo "Commands:"
echo " init - Initialize submodules for the first time"
echo " update - Update submodules to latest versions"
echo " install - Install Node.js dependencies and build"
echo " status - Show submodule status"
echo " clean - Remove submodule completely"
echo " help - Show this help message"
echo ""
echo "Examples:"
echo " $0 init # First time setup"
echo " $0 install # After cloning the repo"
echo " $0 update # Get latest ChEMBL MCP Server"
;;
esac