#!/bin/sh

VERSION=$(perl -ne 'print $1 if /VERSION \"(.*)\"/' config.h)

DISTDIR=root-tail-$VERSION

../fcrackzip/myman2html root-tail.man | tail +3 | tac | tail +7 | tac >/root/www/nh/root-tail.man.nh

rm -rf $DISTDIR
mkdir $DISTDIR
cp -Rlpv Changes Imakefile Makefile.simple README config.h debian mkdist root-tail.c root-tail.man $DISTDIR
chown -R root.root $DISTDIR
chmod u=rwX,go=rX -R  $DISTDIR

tar cvf $DISTDIR.tar $DISTDIR
gzip -9f $DISTDIR.tar


