#!/bin/sh -e
# $Id: autogen.sh,v 1.8 2007/05/13 17:27:21 martin Exp $
# Copyright (c) 2002-2007 Martin A. Godisch <martin@godisch.de>

test -e wmweather.c
umask 022
autoheader -Wall
autoconf -Wall
./configure
make distclean
rm -rf autom4te.cache
rm -f autoscan.log configure.scan
cd ..
chmod -R go=u-w .
version="`pwd`"
version="${version##*-}"
cd ..
tar cvzf wmweather-$version.tar.gz --exclude CVS --exclude .cvsignore --exclude debian wmweather-$version
