Subversion Repositories SvarDOS

Rev

Rev 1211 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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