#!/bin/bash

VERSION="8.2.0"

echo "Building for $VERSION"

# Split html file into sections
../Programs/so_split -s AutoInstall-$VERSION.html HTML

# Create new html file with TOC fixed
../Programs/so_split -t AutoInstall-$VERSION.html HTML
mv -f HTML/new.AutoInstall-$VERSION.html AutoInstall-$VERSION.html


# After editing the .spec file for the current version,
# run the following:  (change 8.2.0 to appropriate value)
#
#       cd ..
#       tar cpf - 8.2.0 | bzip2 -c9 > drakx-autoinstall-doc.tar.bz2
#       cp 8.2.0/drakx-autoinstall-doc.spec ~/RPM/SPECS
#       cp drakx-autoinstall-doc.tar.bz2 ~/RPM/SOURCES
#       tar cpf - Programs | bzip2 -c9 > so_split.tar.bz2
#       cp so_split.tar.bz2 ~/RPM/SOURCES
#
#       cd ~/RPM/SPECS
#       rpm --sign -ba --clean drakx-autoinstall-doc.spec
#




