source: trunk/contrib/make-release.sh @ 1402

Last change on this file since 1402 was 1402, checked in by gogo, 22 months ago

Rebuild the translation system and language files.

Includes a few kludges to help lc_parse_strings.php detect translation strings.

See README_TRANSLATORS.TXT for description of the translation system.

File size: 1019 bytes
Line 
1# Run this with bash from the root of your SVN working copy checkout of the trunk
2# it will dump int /tmp the archived release files
3# eg bash contrib/make-release.sh
4
5VER=0.96.1
6
7if ! [ -f XinhaCore.js ]
8then
9  echo "Run this script from inside your Xinha Root directory."
10  exit 1
11fi
12
13if ! [ -f .svn ]
14then
15  echo "This script must be run inside a subversion working copy."
16  exit 1
17fi
18
19# Create merged language files for translators
20php contrib/lc_parse_strings.php
21for lang in $(find . -wholename "*/lang/*.js" | sed -r 's/.*\///' | sort | uniq | grep -v base | sed -r 's/.js//')
22do
23  php contrib/lc_create_merged_file.php $lang lang/merged/$lang.js
24done
25php contrib/lc_create_merged_file.php NEW lang/merged/__new__.js
26
27
28#
29svn export $(pwd) /tmp/Xinha-$VER
30cd /tmp
31zip -r Xinha-$VER.zip /tmp/Xinha-$VER
32tar -cjvf Xinha-$VER.tar.bz2 /tmp/Xinha-$VER
33cd Xinha-$VER
34php contrib/compress_yui.php
35sleep 5
36cd ../
37zip -r Xinha-$Ver-Compressed.zip /tmp/Xinha-$VER
38tar -cjvf Xinha-$Ver-Compressed.tar.bz2 /tmp/Xinha-$VER
39
Note: See TracBrowser for help on using the repository browser.