Subversion Repositories SvarDOS

Rev

Rev 1514 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
281 mateuszvis 1
#!/bin/sh
645 mateusz.vi 2
#
3
# builds AMB-based help files for each available language
4
# this is a Linux shell script that requires following tools to be in path:
1514 mateusz.vi 5
#  - ambpack  - http://amb.osdn.io/
1206 mateusz.vi 6
#  - utf8tocp - https://utf8tocp.sourceforge.io/
1514 mateusz.vi 7
#  - zip      - https://infozip.sourceforge.net/
8
#  - advzip   - http://www.advancemame.it/
645 mateusz.vi 9
#
10
 
281 mateuszvis 11
set -e
12
 
288 mateuszvis 13
VER=`date +%Y%m%d`
14
 
662 mateusz.vi 15
##### amb-pack all languages #####
288 mateuszvis 16
 
662 mateusz.vi 17
# EN
1514 mateusz.vi 18
echo "SVARDOS HELP SYSTEM [$VER]" > help-en/title
662 mateusz.vi 19
ambpack c help-en help-en.amb
20
 
21
# DE
1514 mateusz.vi 22
echo "SVARDOS-HILFESYSTEM [$VER]" > help-de/title
662 mateusz.vi 23
utf8tocp -d 858 help-de/unicode.map
24
ambpack cc help-de help-de.amb
25
rm help-de/unicode.map
26
 
1176 mateusz.vi 27
# BR
1514 mateusz.vi 28
echo "SISTEMA DE AJUDA DO SVARDOS [$VER]" > help-br/title
1176 mateusz.vi 29
utf8tocp -d 858 help-br/unicode.map
30
ambpack cc help-br help-br.amb
31
rm help-br/unicode.map
32
 
281 mateuszvis 33
mkdir bin
34
mkdir help
35
mkdir appinfo
36
cp help.bat bin
37
mv help-*.amb help
288 mateuszvis 38
echo "version: $VER" >> appinfo/help.lsm
286 mateuszvis 39
echo "description: SvarDOS help (manual)" >> appinfo/help.lsm
1158 mateusz.vi 40
zip -9rkDX -m help-$VER.svp appinfo bin help
645 mateusz.vi 41
rmdir appinfo bin help
1514 mateusz.vi 42
 
43
# repack the ZIP file with advzip for extra space saving
44
advzip -zp4k -i128 help-$VER.svp