# shell script zum Anpassen der der html Seiten.

#
# /html
#
# sed '/href=/s/v3.9.5/v3_9_5/' html/index.html > index.tmp
# mv -vf index.tmp html/index.html

sed '/href=/s/TIFFTechNote2/TechNote2/' html/support.html > support.tmp
mv -vf support.tmp html/support.html

sed '/href=/s/\.\([1-9]\)\.html/_1.html/g' html/tools.html > tools.tmp
mv -vf tools.tmp html/tools.html

sed '/href=/s/TIFFTechNote2/TechNote2/' html/document.html > document.tmp
mv -vf document.tmp html/document.html

sed '/href=/s|http://www.remotesensing.org/libtiff||' html/libtiff.html > libtiff.tmp
mv -vf libtiff.tmp html/libtiff.html

sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b007.html > html.tmp
mv -vf html.tmp html/v3_4b007.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b016.html > html.tmp
mv -vf html.tmp html/v3_4b016.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b018.html > html.tmp
mv -vf html.tmp html/v3_4b018.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b024.html > html.tmp
mv -vf html.tmp html/v3_4b024.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b028.html > html.tmp
mv -vf html.tmp html/v3_4b028.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b029.html > html.tmp
mv -vf html.tmp html/v3_4b029.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b031.html > html.tmp
mv -vf html.tmp html/v3_4b031.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b032.html > html.tmp
mv -vf html.tmp html/v3_4b032.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b033.html > html.tmp
mv -vf html.tmp html/v3_4b033.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b034.html > html.tmp
mv -vf html.tmp html/v3_4b034.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b035.html > html.tmp
mv -vf html.tmp html/v3_4b035.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_4b036.html > html.tmp
mv -vf html.tmp html/v3_4b036.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_5_1.html > html.tmp
mv -vf html.tmp html/v3_5_1.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_5_2.html > html.tmp
mv -vf html.tmp html/v3_5_2.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_5_3.html > html.tmp
mv -vf html.tmp html/v3_5_3.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_5_4.html > html.tmp
mv -vf html.tmp html/v3_5_4.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_5_5.html > html.tmp
mv -vf html.tmp html/v3_5_5.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_5_6-beta.html > html.tmp
mv -vf html.tmp html/v3_5_6-beta.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_5_7.html > html.tmp
mv -vf html.tmp html/v3_5_7.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_6_0.html > html.tmp
mv -vf html.tmp html/v3_6_0.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_6_1.html > html.tmp
mv -vf html.tmp html/v3_6_1.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_0alpha.html > html.tmp
mv -vf html.tmp html/v3_7_0alpha.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_0beta.html > html.tmp
mv -vf html.tmp html/v3_7_0beta.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_0b2.html > html.tmp
mv -vf html.tmp html/v3_7_0b2.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_0.html > html.tmp
mv -vf html.tmp html/v3_7_0.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_1.html > html.tmp
mv -vf html.tmp html/v3_7_1.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_2.html > html.tmp
mv -vf html.tmp html/v3_7_2.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_3.html > html.tmp
mv -vf html.tmp html/v3_7_3.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_7_4.html > html.tmp
mv -vf html.tmp html/v3_7_4.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_8_0.html > html.tmp
mv -vf html.tmp html/v3_8_0.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_8_1.html > html.tmp
mv -vf html.tmp html/v3_8_1.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_8_2.html > html.tmp
mv -vf html.tmp html/v3_8_2.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_9_0beta.html > html.tmp
mv -vf html.tmp html/v3_9_0beta.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_9_1.html > html.tmp
mv -vf html.tmp html/v3_9_1.html
sed '/Previous Version.*HREF=/s|v3\.\([0-9]\)\.\([0-9]\)|v3_\1_\2|' html/v3_9_2.html > html.tmp
mv -vf html.tmp html/v3_9_2.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_0.html > html.tmp
mv -vf html.tmp html/v4_0_0.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_1.html > html.tmp
mv -vf html.tmp html/v4_0_1.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_2.html > html.tmp
mv -vf html.tmp html/v4_0_2.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_3.html > html.tmp
mv -vf html.tmp html/v4_0_3.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_4.html > html.tmp
mv -vf html.tmp html/v4_0_4.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_4beta.html > html.tmp
mv -vf html.tmp html/v4_0_2beta.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_5.html > html.tmp
mv -vf html.tmp html/v4_0_5.html
sed '/Previous Version.*HREF=/s|v4\.\([0-9]\)\.\([0-9]\)|v4_\1_\2|' html/v4_0_6.html > html.tmp
mv -vf html.tmp html/v4_0_6.html

#
# /html/man
# 
cat > script.sed << EOS
/A HREF=/s/bmp2tiff.1.html/bmp2tiff_1.html/
/A HREF=/s/fax2ps.1.html/fax2ps_1.html/
/A HREF=/s/fax2tiff.1.html/fax2tiff_1.html/
/A HREF=/s/gif2tiff.1.html/gif2tiff_1.html/
/A HREF=/s/pal2rgb.1.html/pal2rgb_1.html/
/A HREF=/s/ppm2tiff.1.html/ppm2tiff_1.html/
/A HREF=/s/ras2tiff.1.html/ras2tiff_1.html/
/A HREF=/s/raw2tiff.1.html/raw2tiff_1.html/
/A HREF=/s/rgb2ycbcr.1.html/rgb2ycbcr_1.html/
/A HREF=/s/sgi2tiff.1.html/sgi2tiff_1.html/
/A HREF=/s/thumbnail.1.html/thumbnail_1.html/
/A HREF=/s/tiff2bw.1.html/tiff2bw_1.html/
/A HREF=/s/tiff2pdf.1.html/tiff2pdf_1.html/
/A HREF=/s/tiff2ps.1.html/tiff2ps_1.html/
/A HREF=/s/tiff2rgba.1.html/tiff2rgba_1.html/
/A HREF=/s/tiffcmp.1.html/tiffcmp_1.html/
/A HREF=/s/tiffcp.1.html/tiffcp_1.html/
/A HREF=/s/tiffdither.1.html/tiffdither_1.html/
/A HREF=/s/tiffdump.1.html/tiffdump_1.html/
/A HREF=/s/tiffgt.1.html/tiffgt_1.html/
/A HREF=/s/tiffinfo.1.html/tiffinfo_1.html/
/A HREF=/s/tiffmedian.1.html/tiffmedian_1.html/
/A HREF=/s/tiffset.1.html/tiffset_1.html/
/A HREF=/s/tiffsplit.1.html/tiffsplit_1.html/
/A HREF=/s/tiffsv.1.html/tiffsv_1.html/
/A HREF=/s/libtiff.3tiff.html/libtiff_3tiff.html/
/A HREF=/s/TIFFbuffer.3tiff.html/buffer_3tiff.html/
/A HREF=/s/TIFFClose.3tiff.html/Close_3tiff.html/
/A HREF=/s/TIFFcodec.3tiff.html/codec_3tiff.html/
/A HREF=/s/TIFFcolor.3tiff.html/color_3tiff.html/
/A HREF=/s/TIFFDataWidth.3tiff.html/DataWidth_3tiff.html/
/A HREF=/s/TIFFError.3tiff.html/Error_3tiff.html/
/A HREF=/s/TIFFFieldDataType.3tiff.html/FldDataType_3tiff.html/
/A HREF=/s/TIFFFieldName.3tiff.html/FldName_3tiff.html/
/A HREF=/s/TIFFFieldPassCount.3tiff.html/FldPassCount_3tiff.html/
/A HREF=/s/TIFFFieldReadCount.3tiff.html/FldReadCount_3tiff.html/
/A HREF=/s/TIFFFieldTag.3tiff.html/FldTag_3tiff.html/
/A HREF=/s/TIFFFieldWriteCount.3tiff.html/FldWriteCount_3tiff.html/
/A HREF=/s/TIFFFlush.3tiff.html/Flush_3tiff.html/
/A HREF=/s/TIFFGetField.3tiff.html/GetField_3tiff.html/
/A HREF=/s/TIFFmemory.3tiff.html/memory_3tiff.html/
/A HREF=/s/TIFFOpen.3tiff.html/Open_3tiff.html/
/A HREF=/s/TIFFPrintDirectory.3tiff.html/PrintDirectory_3tiff.html/
/A HREF=/s/TIFFquery.3tiff.html/query_3tiff.html/
/A HREF=/s/TIFFReadDirectory.3tiff.html/RdDirectory_3tiff.html/
/A HREF=/s/TIFFReadEncodedStrip.3tiff.html/RdEncStrip_3tiff.html/
/A HREF=/s/TIFFReadEncodedTile.3tiff.html/RdEncTile_3tiff.html/
/A HREF=/s/TIFFReadRawStrip.3tiff.html/RdRawStrip_3tiff.html/
/A HREF=/s/TIFFReadRawTile.3tiff.html/RdRawTile_3tiff.html/
/A HREF=/s/TIFFReadRGBAImage.3tiff.html/RdRGBAImage_3tiff.html/
/A HREF=/s/TIFFReadRGBAStrip.3tiff.html/RdRGBAStrip_3tiff.html/
/A HREF=/s/TIFFReadRGBATile.3tiff.html/RdRGBATile_3tiff.html/
/A HREF=/s/TIFFReadScanline.3tiff.html/RdScanline_3tiff.html/
/A HREF=/s/TIFFReadTile.3tiff.html/RdTile_3tiff.html/
/A HREF=/s/TIFFRGBAImage.3tiff.html/RGBAImage_3tiff.html/
/A HREF=/s/TIFFSetDirectory.3tiff.html/SetDirectory_3tiff.html/
/A HREF=/s/TIFFSetField.3tiff.html/SetField_3tiff.html/
/A HREF=/s/TIFFsize.3tiff.html/size_3tiff.html/
/A HREF=/s/TIFFstrip.3tiff.html/strip_3tiff.html/
/A HREF=/s/TIFFswab.3tiff.html/swab_3tiff.html/
/A HREF=/s/TIFFtile.3tiff.html/tile_3tiff.html/
/A HREF=/s/TIFFWarning.3tiff.html/Warning_3tiff.html/
/A HREF=/s/TIFFWriteDirectory.3tiff.html/WrDirectory_3tiff.html/
/A HREF=/s/TIFFWriteEncodedStrip.3tiff.html/WrEncStrip_3tiff.html/
/A HREF=/s/TIFFWriteEncodedTile.3tiff.html/WrEncTile_3tiff.html/
/A HREF=/s/TIFFWriteRawStrip.3tiff.html/WrRawStrip_3tiff.html/
/A HREF=/s/TIFFWriteRawTile.3tiff.html/WrRawTile_3tiff.html/
/A HREF=/s/TIFFWriteScanline.3tiff.html/WrScanline_3tiff.html/
/A HREF=/s/TIFFWriteTile.3tiff.html/WrTile_3tiff.html/
EOS

sed -f script.sed html/man/index.html > index.tmp
mv -vf index.tmp html/man/index.html

rm -vf script.sed
