For OS X and Linux.
Development status: Abandoned. Replaced by floomatic.
This program monitors a directory for changed files using FSEvents or inotify. When any file changes, it calculates the operational transformation and sends it to a remote server. Likewise, it also does the reverse: applies operational transformations sent from the remote server to local files.
To build, you'll need automake, Jansson>=2.4, libcurl, pthreads, Lua 5.2 or later, and pkg-config. Linux users need libinotifytools-dev.
brew install automake jannson pkg-config
Since homebrew only has Lua 5.1 right now, OS X users will have to download and install Lua from source.
apt-get install -y automake build-essential libcurl4-openssl-dev libinotifytools-dev libjansson-dev liblua5.2-dev lua5.2 pkg-config
git clone https://github.com/Floobits/diffshipper.git
cd diffshipper
./autogen.sh
Building requires Jansson version 2.4 or greater. If you have an older version of Ubuntu, apt-get
might install an incompatible version of Jansson. If this happens, you'll have to apt-get purge libjansson-dev
and install Jansson from source.
Running the diffshipper requires a few arguments: -r
is the room name, -o
is the room owner, -u
is your Floobits username, and -s
is your Floobits API secret. You can find (and reset) your secret on your settings page.
diffshipper -r testing -o ownername -u myuser -s gii9Ka8aZei3ej1eighu2vi8D ~/code/repo
diffshipper --create-room --room-perms 2 -r testing -o ownername -u myuser -s gii9Ka8aZei3ej1eighu2vi8D ~/code/repo
diffshipper --recreate-room --room-perms 2 -r testing -o ownername -u myuser -s gii9Ka8aZei3ej1eighu2vi8D ~/code/repo
man diffshipper
for more info and examples.