# HG changeset patch # User Aleksej Bobylev # Date 1408911730 -10800 # Node ID d4450804a65fc9c3c23b904fe83cbf1cb28450ba # Parent 24e0f312c73de5e7add94955e831a3689ccab3bc tramys-server: fix typo; tramys: update lists. diff -r 24e0f312c73d -r d4450804a65f tramys-server/receipt --- a/tramys-server/receipt Sun Aug 24 22:46:59 2014 +0300 +++ b/tramys-server/receipt Sun Aug 24 23:22:10 2014 +0300 @@ -13,6 +13,6 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - install -Dm755 -o www -g www $stuff/tramys.cgi \ - $fs/home/slitaz/www/cook/tramys.cgi + install -Dm755 -o www -g www $stuff/tramys2.cgi \ + $fs/home/slitaz/www/cook/tramys2.cgi } diff -r 24e0f312c73d -r d4450804a65f tramys-server/stuff/tramys.cgi --- a/tramys-server/stuff/tramys.cgi Sun Aug 24 22:46:59 2014 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,131 +0,0 @@ -#!/bin/sh -# tramys - TRAnslate MY Slitaz. Server solution -# Tool for managing translation files for SliTaz GNU/Linux -# Aleksej Bobylev , 2014 - -# How to use: -# 1. tramys2.cgi?lang=$LANG&rel=$RELEASE to generate archive -# Pass packages list in HTTP_USER_AGENT header -# (seems it have no restrictions for length and no encoded symbols ' ' and '+') -# 2. tramys2.cgi?dl=$DL_KEY to download archive (user can cancel downloading) - -. /usr/bin/httpd_helper.sh - -WORKING=$(mktemp -d) -DATADIR=/home/lexeii/Public/tramys - -# hide script -if [ "x$(GET lang)$(GET rel)$(GET dl)" == "x" ]; then - echo -e "HTTP/1.1 404 Not Found\nContent-Type: text/html\n\n404 - Not Found

404 - Not Found

" - exit -fi - -# begin: compress and give to client -if [ "x$(GET dl)" != "x" ]; then - WORKING="/tmp/tmp.$(echo $(GET dl) | tr -cd 'A-Za-z0-9')" # avoid relative paths - cat <, 2014 + +# How to use: +# 1. tramys2.cgi?lang=$LANG&rel=$RELEASE to generate archive +# Pass packages list in HTTP_USER_AGENT header +# (seems it have no restrictions for length and no encoded symbols ' ' and '+') +# 2. tramys2.cgi?dl=$DL_KEY to download archive (user can cancel downloading) + +. /usr/bin/httpd_helper.sh + +WORKING=$(mktemp -d) +DATADIR=/home/lexeii/Public/tramys + +# hide script +if [ "x$(GET lang)$(GET rel)$(GET dl)" == "x" ]; then + echo -e "HTTP/1.1 404 Not Found\nContent-Type: text/html\n\n404 - Not Found

404 - Not Found

" + exit +fi + +# begin: compress and give to client +if [ "x$(GET dl)" != "x" ]; then + WORKING="/tmp/tmp.$(echo $(GET dl) | tr -cd 'A-Za-z0-9')" # avoid relative paths + cat <