helper scripts for dev

This commit is contained in:
Ladd 2025-12-28 11:28:04 -06:00
parent 0319df06cc
commit 6a8bbf8fe9
3 changed files with 42 additions and 0 deletions

16
commit Executable file
View File

@ -0,0 +1,16 @@
#!/bin/env bash
if [[ $(hostname) != "ladd76" ]]; then
echo >&2 "host $(hostname) != 'ladd76'"
exit 1
fi
set -eo pipefail
git checkout dev
./sync
git add .
git commit
git push
ssh lentilz 'cd ~/code/gravity-dev && git stash && git pull && git apply stash && npm i'

17
merge Executable file
View File

@ -0,0 +1,17 @@
#!/bin/env bash
if [[ $(hostname) != "ladd76" ]]; then
echo >&2 "host $(hostname) != 'ladd76'"
exit 1
fi
set -eo pipefail
./commit
git checkout main
git pull
git merge dev
git push
git checkout dev
ssh lentilz 'cd ~/code/gravity-live && git pull'

9
sync Executable file
View File

@ -0,0 +1,9 @@
#!/bin/env bash
if [[ $(hostname) != "ladd76" ]]; then
echo >&2 "host $(hostname) != 'ladd76'"
exit 1
fi
rsync -ru --exclude='.git' --exclude='node_modules' ~/code/gravity-dev/ lentilz:code/gravity-dev/
rsync -ru --exclude='.git' --exclude='node_modules' lentilz:code/gravity-dev/ ~/code/gravity-dev/