tinycm view tools/update.sh @ rev 51
Small fix to Makefile
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Jan 21 00:03:00 2014 +0100 (2014-01-21) |
parents | df44b3c6e4c7 |
children |
line source
1 #!/bin/sh
2 #
3 # Update a TinyCM install with latest code from Hg.
4 # Usage: ./tools/update.sh [paths]
5 #
6 . /lib/libtaz.sh
8 [ ! "$1" ] && echo "Missing TinyCM path(s)" && exit 0
10 # We dont overwrite style.css and images since they may have changed
11 # as well as the config file!
12 for cm in $@
13 do
14 echo "Updating: $cm"
15 cp -a index.cgi ${cm}
16 cp -a plugins ${cm}
17 cp -a lib/functions.js ${cm}/lib
18 cp -a lib/jseditor.html ${cm}/lib
19 done
21 exit 0