# HG changeset patch # User Christophe Lincoln # Date 1390094422 -3600 # Node ID df44b3c6e4c707d8cfd6780c397e61c71562e92b # Parent 53a2678332668d9930c81322bc1b3658ddd9361c Add a tiny tool to update a TinyCM install diff -r 53a267833266 -r df44b3c6e4c7 tools/update.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/update.sh Sun Jan 19 02:20:22 2014 +0100 @@ -0,0 +1,21 @@ +#!/bin/sh +# +# Update a TinyCM install with latest code from Hg +# Usage: ./tools/update.sh [paths] +# +. /lib/libtaz.sh + +[ ! "$1" ] && echo "Missing TinyCM path(s)" && exit 0 + +# We dont overwrite style.css and images since they ma have change +# as well as the config file! +for cm in $@ +do + echo "Updating: $cm" + cp -a index.cgi ${cm} + cp -a plugins ${cm} + cp -a lib/functions.js ${cm}/lib + cp -a lib/jseditor.html ${cm}/lib +done + +exit 0