#!/bin/sh
#
# This is bootstrap for release (not for development):
#   * version number is set by hand (see VERSION variable)
#   * RSS is not generated
#
# This bootstrap file has been inspired by Bootstraping chapter
# in Autobook by Vaughan, Elliston, Tromey and Taylor.
# http://sources.redhat.com/autobook/
#
# Usage: $0 [path to wxwin.m4]
#
# add -I for localy installed wxwin.m4 (or add its parent directory as
#                                      the first command-line argument)
#
# Reccomended usage:
#
# $ ./bootstrap-release
# $ ACLOCAL_PATH="-I $1"   # if $1 is set
# $ autoreconf $ACLOCAL_PATH -i
# $ ./configure
#
#
#
# --- IMPORTANT ----
# define version, all other is self-working

VERSION=0.5.8

# -----------------
# execution part:

set -x
set -e

DEVELOPMENT=no
export DEVELOPMENT VERSION

# required by autoconf
hg log --style changelog > ChangeLog

# generate thumbnails in doc/ and icons in xmunipack/, RSS optionaly
( cd doc && sh genthumb.sh )
( cd xmunipack && sh image_list.sh )
#( cd doc && sh rss.sh )
# RSS must be generated out of official Debian repository to prevent:
#  https://lintian.debian.org/tags/privacy-breach-generic.html
