-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_github_repo.sh
More file actions
executable file
·101 lines (86 loc) · 2.56 KB
/
Copy pathsetup_github_repo.sh
File metadata and controls
executable file
·101 lines (86 loc) · 2.56 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
#!/bin/bash
# Setup script for creating private GitHub sample repository
echo "=== DJ MAXX Sample Repository Setup ==="
echo ""
# Get GitHub username
read -p "Enter your GitHub username: " GITHUB_USER
if [ -z "$GITHUB_USER" ]; then
echo "Error: GitHub username is required"
exit 1
fi
echo ""
echo "Creating private GitHub repository: djmaxx-samples"
echo ""
# Update strudel.json with actual username
sed -i.bak "s/YOUR-USERNAME/$GITHUB_USER/g" strudel.json
echo "✓ Updated strudel.json with username: $GITHUB_USER"
# Initialize git if not already done
if [ ! -d ".git" ]; then
git init
echo "✓ Initialized git repository"
fi
# Create .gitignore if needed
if [ ! -f ".gitignore" ]; then
cat > .gitignore << 'EOF'
# OS files
.DS_Store
Thumbs.db
# Backup files
*.bak
*~
# Temp files
*.tmp
EOF
echo "✓ Created .gitignore"
fi
# Stage all files
git add .
echo "✓ Staged all files"
# Commit
git commit -m "Initial commit: Converted samples from VCSL
- 120 samples across 6 categories
- Piano, synth, strings, woodwinds, drums, perc
- Dirt-samples compatible format
- Ready for DJ MAXX"
echo "✓ Created initial commit"
# Create GitHub repository using gh CLI
echo ""
echo "Creating private GitHub repository..."
if command -v gh &> /dev/null; then
gh repo create djmaxx-samples --private --source=. --remote=origin --push
echo "✓ Repository created and pushed!"
else
echo "GitHub CLI (gh) not found. Creating repository manually..."
echo ""
echo "Please:"
echo "1. Go to: https://github.com/new"
echo "2. Repository name: djmaxx-samples"
echo "3. Visibility: Private"
echo "4. Click 'Create repository'"
echo ""
echo "Then run these commands:"
echo " git remote add origin https://github.com/$GITHUB_USER/djmaxx-samples.git"
echo " git branch -M main"
echo " git push -u origin main"
exit 0
fi
echo ""
echo "=== Setup Complete! ==="
echo ""
echo "Repository URL: https://github.com/$GITHUB_USER/djmaxx-samples"
echo ""
echo "To use in DJ MAXX:"
echo "1. Open Sample Repository Manager (folder icon)"
echo "2. Authenticate with GitHub token (repo scope)"
echo "3. Add repository: github:$GITHUB_USER/djmaxx-samples"
echo "4. Enable it"
echo "5. Use samples:"
echo " - s(\"piano\") // Piano samples"
echo " - s(\"strings:5\") // Strings variation 5"
echo " - s(\"drums\") // Drum samples"
echo " - s(\"perc\") // Percussion"
echo " - s(\"woodwinds\") // Woodwinds"
echo " - s(\"synth\") // Synth samples"
echo ""
echo "Total samples: 120 (20 per category)"
echo "Total size: ~137MB"