author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 22 Feb 2016 12:41:52 +0200 | |
changeset 1903 | 901e7394849f |
parent 1893 | da0024f4f068 |
permissions | -rwxr-xr-x |
903 | 1 |
#!/bin/sh |
2 |
||
3 |
echo '[OPTIONS]' |
|
4 |
echo 'Compatibility=1.1 or later' |
|
1893
da0024f4f068
Remove frame based publishing, stick to iframe. Clean CHM code generation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
903
diff
changeset
|
5 |
echo 'Compiled file=chm.chm' |
903 | 6 |
echo 'Contents file=chm.hhc' |
7 |
echo 'Default Window=Navigation panel' |
|
1893
da0024f4f068
Remove frame based publishing, stick to iframe. Clean CHM code generation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
903
diff
changeset
|
8 |
echo 'Default topic=iframe.html' |
903 | 9 |
echo 'Display compile progress=No' |
10 |
echo 'Full text search stop list file=chm.stp' |
|
11 |
echo 'Full-text search=Yes' |
|
12 |
echo 'Language=0x409 Английский (США)' |
|
13 |
echo 'Title=Tips from gavenkoa' |
|
14 |
echo '' |
|
15 |
echo '[WINDOWS]' |
|
1893
da0024f4f068
Remove frame based publishing, stick to iframe. Clean CHM code generation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
903
diff
changeset
|
16 |
echo 'Navigation panel=,"chm.hhc",,"iframe.html","iframe.html",,,,,0x62520,250,0x304e,[0,0,900,600],,,,,,,0' |
903 | 17 |
echo '' |
18 |
echo '[FILES]' |
|
19 |
||
20 |
for file in *.rst *.txt; do |
|
1893
da0024f4f068
Remove frame based publishing, stick to iframe. Clean CHM code generation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
903
diff
changeset
|
21 |
case $file in |
da0024f4f068
Remove frame based publishing, stick to iframe. Clean CHM code generation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
903
diff
changeset
|
22 |
HEADER.rst) continue;; |
da0024f4f068
Remove frame based publishing, stick to iframe. Clean CHM code generation.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
903
diff
changeset
|
23 |
esac |
903 | 24 |
ext=${file##*.} |
25 |
name=${file%.${ext}} |
|
26 |
case $ext in |
|
27 |
txt) |
|
28 |
echo $name.txt |
|
29 |
;; |
|
30 |
rst) |
|
31 |
echo $name.html |
|
32 |
;; |
|
33 |
esac |
|
34 |
done |
|
35 |
||
36 |
echo '' |
|
37 |
echo '[INFOTYPES]' |
|
38 |