dist_version=$2
package=$3
distdir=$4
+release=$5
-./configure --with-irssi --with-silcd
+if test -z $release; then
+ release="0.fc7"
+fi
+
+sed -e "s/SILC_VERSION/$dist_version/" -e "s/SILC_RELEASE/$release/" \
+ silc-toolkit.spec.in > silc-toolkit.spec
+
+./configure
cd doc
make dist-hook
make toolkit-ref-html
cp ../lib/doc/*.gif toolkit
cd ..
-