You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
383 B
18 lines
383 B
#!/bin/sh
|
|
|
|
# Dispatch based on SSH_ORIGINAL_COMMAND. rsync, diff and merge.
|
|
# TODO: Make this interactive and show the diff before and then
|
|
# do the merge?
|
|
|
|
case "$SSH_ORIGINAL_COMMAND" in
|
|
"rsync")
|
|
exec /usr/local/bin/rrsync web-files
|
|
;;
|
|
"diff-testing")
|
|
exec `dirname $0`/make-stable.sh $1 $2 dry-run
|
|
;;
|
|
"merge-testing")
|
|
exec `dirname $0`/make-stable.sh $1 $2
|
|
;;
|
|
esac
|