Your music, beautifully tracked. All yours. (coming soon) teal.fm
teal-fm atproto
at fix-compose-path 66 lines 1.7 kB view raw
1#!/bin/bash 2# scripts/setup-lexicons.sh 3# Setup script for ATProto lexicons submodule and symbolic links 4 5set -e 6 7echo "Setting up lexicons..." 8 9# Check if we're in the right directory 10if [ ! -f "package.json" ] || [ ! -d "lexicons" ]; then 11 echo "Error: This script must be run from the project root directory" 12 exit 1 13fi 14 15# Initialize submodules 16echo "Initializing submodules..." 17git submodule update --init --recursive 18 19# Check if vendor/atproto exists 20if [ ! -d "vendor/atproto" ]; then 21 echo "Error: vendor/atproto submodule not found" 22 exit 1 23fi 24 25# Create symbolic links if they don't exist 26echo "Creating symbolic links..." 27cd lexicons 28 29if [ ! -L app ]; then 30 ln -s ../vendor/atproto/lexicons/app app 31 echo "Created symlink: lexicons/app" 32else 33 echo "Symlink already exists: lexicons/app" 34fi 35 36if [ ! -L chat ]; then 37 ln -s ../vendor/atproto/lexicons/chat chat 38 echo "Created symlink: lexicons/chat" 39else 40 echo "Symlink already exists: lexicons/chat" 41fi 42 43if [ ! -L com ]; then 44 ln -s ../vendor/atproto/lexicons/com com 45 echo "Created symlink: lexicons/com" 46else 47 echo "Symlink already exists: lexicons/com" 48fi 49 50if [ ! -L tools ]; then 51 ln -s ../vendor/atproto/lexicons/tools tools 52 echo "Created symlink: lexicons/tools" 53else 54 echo "Symlink already exists: lexicons/tools" 55fi 56 57cd .. 58 59echo "Lexicons setup complete!" 60echo "" 61echo "You should now have access to:" 62echo " - lexicons/app -> ATProto app lexicons" 63echo " - lexicons/chat -> ATProto chat lexicons" 64echo " - lexicons/com -> ATProto protocol lexicons" 65echo " - lexicons/tools -> ATProto tools lexicons" 66echo " - lexicons/fm.teal.alpha -> Custom Teal lexicons"