Subversion Repositories SvarDOS

Rev

Rev 1211 | Go to most recent revision | 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
1211 mateusz.vi 23
cp -n help-en/* help-de/
662 mateusz.vi 24
utf8tocp -d 858 help-de/unicode.map
25
ambpack cc help-de help-de.amb
26
rm help-de/unicode.map
27
 
1176 mateusz.vi 28
# BR
1514 mateusz.vi 29
echo "SISTEMA DE AJUDA DO SVARDOS [$VER]" > help-br/title
1211 mateusz.vi 30
cp -n help-en/* help-br/
1176 mateusz.vi 31
utf8tocp -d 858 help-br/unicode.map
32
ambpack cc help-br help-br.amb
33
rm help-br/unicode.map
34
 
281 mateuszvis 35
mkdir bin
36
mkdir help
37
mkdir appinfo
38
cp help.bat bin
39
mv help-*.amb help
288 mateuszvis 40
echo "version: $VER" >> appinfo/help.lsm
286 mateuszvis 41
echo "description: SvarDOS help (manual)" >> appinfo/help.lsm
1158 mateusz.vi 42
zip -9rkDX -m help-$VER.svp appinfo bin help
645 mateusz.vi 43
rmdir appinfo bin help
1514 mateusz.vi 44
 
45
# repack the ZIP file with advzip for extra space saving
46
advzip -zp4k -i128 help-$VER.svp