chm-hhp.sh
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1893 da0024f4f068
permissions -rwxr-xr-x
Decrease intent to increase space usage on mobile.

#!/bin/sh

echo '[OPTIONS]'
echo 'Compatibility=1.1 or later'
echo 'Compiled file=chm.chm'
echo 'Contents file=chm.hhc'
echo 'Default Window=Navigation panel'
echo 'Default topic=iframe.html'
echo 'Display compile progress=No'
echo 'Full text search stop list file=chm.stp'
echo 'Full-text search=Yes'
echo 'Language=0x409 Английский (США)'
echo 'Title=Tips from gavenkoa'
echo ''
echo '[WINDOWS]'
echo 'Navigation panel=,"chm.hhc",,"iframe.html","iframe.html",,,,,0x62520,250,0x304e,[0,0,900,600],,,,,,,0'
echo ''
echo '[FILES]'

for file in *.rst *.txt; do
  case $file in
    HEADER.rst) continue;;
  esac
  ext=${file##*.}
  name=${file%.${ext}}
  case $ext in
    txt)
      echo $name.txt
      ;;
    rst)
      echo $name.html
      ;;
  esac
done

echo ''
echo '[INFOTYPES]'