/usr/share/mr/unison is in myrepos 1.20160123.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # This allows using unison as a "version control system" with mr.
#
# You need to configure unison by setting up files in ~/.unison named
# the same as the basenames of the directories you want to sync, and
# containing unison configuration to sync them.
#
# By default commit will be interactive; you can set batch mode in the
# config file to disable this. All other commands use batch mode by
# default.
# To make mr use this file, add a line like this inside the [DEFAULT]
# section of your ~/.mrconfig
#include = cat /usr/share/mr/unison
# And an example repo using it would look something like:
#[music]
#unison_test = true
#checkout = unison_checkout music
lib =
# The name of the directory containing the repo is assumed to
# match that of a unison config file.
unison_config() {
basename "$MR_REPO"
}
unison_batch() {
unison -batch $(unison_config)
}
unison_checkout() {
mkdir "$1" && cd "$1" && unison -batch "$1"
}
unison_update = unison_batch
unison_push = unison_batch
unison_commit = unison $(unison_config)
# vim:sw=8:sts=0:ts=8:noet
|