wok-6.x view tramys-client/stuff/tramys2 @ rev 17081
Add: tramys-server and tramys-client (yesterday version for history).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Aug 24 22:43:01 2014 +0300 (2014-08-24) |
parents | |
children | 24e0f312c73d |
line source
1 #!/bin/sh
2 # tramys - TRAnslate MY Slitaz. Client solution
3 # Tool for managing translation files for SliTaz GNU/Linux
4 # Aleksej Bobylev <al.bobylev@gmail.com>, 2014
6 . /etc/slitaz/slitaz.conf
7 . /lib/libtaz.sh
8 check_root $@
9 WORKING=$(mktemp -d)
10 busybox wget -U "$(cd $INSTALLED; ls -1 | tr '\n' ' ')" \
11 "http://cook.slitaz.org/tramys.cgi?lang=$LANG" -O - | \
12 busybox tar -C $WORKING -xz
13 chown -R root:root $WORKING
14 cp -fpr $WORKING/* /
15 rm -rf $WORKING