-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrsync-theme.sh
More file actions
executable file
·28 lines (25 loc) · 960 Bytes
/
rsync-theme.sh
File metadata and controls
executable file
·28 lines (25 loc) · 960 Bytes
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
#!/bin/bash
# Sync theme files from Trellis project to standalone theme repository
#
# This script uses rsync to synchronize theme files from your Trellis site
# to a separate theme repository, useful for theme development workflow.
#
# How it works:
# - rsync -av: Archive mode (preserves permissions, timestamps) with verbose output
# - --delete: Removes files in destination that don't exist in source
# - --exclude: Skips syncing specific directories (dependencies, git files)
#
# Customize the paths below for your setup:
# - Source: Your theme location within the Trellis project
# - Destination: Your standalone theme repository
#
# Example theme name used: 'nynaeve' - replace with your actual theme name
rsync -av --delete \
--exclude create-pr.sh \
--exclude .distignore \
--exclude 'node_modules/' \
--exclude 'vendor/' \
--exclude '.git/' \
--exclude '.github/' \
~/code/example.com/demo/web/app/themes/elayne/ \
~/code/elayne/