903
|
1 |
#!/bin/sh
|
|
2 |
|
|
3 |
echo '[OPTIONS]'
|
|
4 |
echo 'Compatibility=1.1 or later'
|
|
5 |
echo 'Compiled file=tips4gavenkoa.chm'
|
|
6 |
echo 'Contents file=chm.hhc'
|
|
7 |
echo 'Default Window=Navigation panel'
|
|
8 |
echo 'Default topic=index-chm.html'
|
|
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]'
|
|
16 |
echo 'Navigation panel=,"chm.hhc",,"index-chm.html","index-chm.html",,,,,0x62520,250,0x304e,[0,0,900,600],,,,,,,0'
|
|
17 |
echo ''
|
|
18 |
echo '[FILES]'
|
|
19 |
|
|
20 |
for file in *.rst *.txt; do
|
|
21 |
ext=${file##*.}
|
|
22 |
name=${file%.${ext}}
|
|
23 |
case $ext in
|
|
24 |
txt)
|
|
25 |
echo $name.txt
|
|
26 |
;;
|
|
27 |
rst)
|
|
28 |
echo $name.html
|
|
29 |
;;
|
|
30 |
esac
|
|
31 |
done
|
|
32 |
echo index-chm.html
|
|
33 |
|
|
34 |
echo ''
|
|
35 |
echo '[INFOTYPES]'
|
|
36 |
|